class AmoCRM::Client::Error

Attributes

body[R]
state[R]

Public Class Methods

new(state, body) click to toggle source
# File lib/amo_crm/client/error.rb, line 5
def initialize state, body
  @state = state
  @body = body
end

Public Instance Methods

message() click to toggle source
# File lib/amo_crm/client/error.rb, line 10
def message
  to_s
end
to_s() click to toggle source
# File lib/amo_crm/client/error.rb, line 14
def to_s
  "#{state}: #{body}"
end