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
#convert_date!, #date_keys, #fetch, #instance_multi_relationship_objects, #instance_relationships_object, #instance_timestamps, #one_to_many, #one_to_one, #parse_hash_items, #property_keys, #relationship_lists, #set_relationships_object, #set_variables, #setup_relationships_data!, #special_relationship, #verify_item?
Methods included from Request::Client
#api, #array_from_list, #funding_rounds_lists, #get, #kclass_name, #list, #organization_lists, #parsing_from_list, #person_lists, #total_items_from_list
Constructor Details
#initialize(json) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/crunchbase/model/error.rb', line 8 def initialize(json) @message = 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 @message end |