Class: Crunchbase::Model::Error
- Defined in:
- lib/crunchbase/model/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize(json) ⇒ Error
constructor
A new instance of Error.
Methods inherited from Entity
array_from_list, #fetch, funding_rounds_lists, get, list, organization_lists, parsing_from_list, person_lists, total_items_from_list
Constructor Details
#initialize(json) ⇒ Error
8 9 10 11 |
# File 'lib/crunchbase/model/error.rb', line 8 def initialize(json) = json['message'] @code = json['code'] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/crunchbase/model/error.rb', line 6 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/crunchbase/model/error.rb', line 6 def end |