module Magnews

Constants

EXCEPTIONS_MAP
VERSION

Public Class Methods

configure() { |configuration| ... } click to toggle source
# File lib/magnews-ruby.rb, line 21
def self.configure(&block)
  yield configuration
end

Private Class Methods

configuration() click to toggle source
# File lib/magnews-ruby.rb, line 25
def self.configuration
  @configuration ||= Util::Configuration.new
end

Public Instance Methods

errors() click to toggle source
# File lib/magnews/errors.rb, line 15
def errors
  JSON.parse(http_body).deep_symbolize_keys[:errors]
end