Class: Crunchbase::Model::Error

Inherits:
Entity
  • Object
show all
Defined in:
lib/crunchbase/model/error.rb

Instance Attribute Summary collapse

Attributes inherited from Entity

#type_name, #uuid

Instance Method Summary collapse

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)
  @message  = json['message']
  @code     = json['code']
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'lib/crunchbase/model/error.rb', line 6

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



6
7
8
# File 'lib/crunchbase/model/error.rb', line 6

def message
  @message
end