Class: CorePro::Models::ApiError

Inherits:
JsonBase
  • Object
show all
Defined in:
lib/corepro/models/api_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JsonBase

#from_json!, #is_hash?, #to_hash, #to_json

Instance Attribute Details

#codeObject

Returns the value of attribute code.



6
7
8
# File 'lib/corepro/models/api_error.rb', line 6

def code
  @code
end

#messageObject

Returns the value of attribute message.



7
8
9
# File 'lib/corepro/models/api_error.rb', line 7

def message
  @message
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/corepro/models/api_error.rb', line 9

def to_s
  "code: #{@code}, message: #{@message}"
end