Class: CorePro::Models::ApiError
- Defined in:
- lib/corepro/models/api_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
Methods inherited from JsonBase
#from_json!, #is_hash?, #to_hash, #to_json
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
6 7 8 |
# File 'lib/corepro/models/api_error.rb', line 6 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
7 8 9 |
# File 'lib/corepro/models/api_error.rb', line 7 def @message end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/corepro/models/api_error.rb', line 9 def to_s "code: #{@code}, message: #{@message}" end |