Class: Crunchbase::Model::FundedOrganization
- Defined in:
- lib/crunchbase/model/funded_organization.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize(json) ⇒ FundedOrganization
constructor
A new instance of FundedOrganization.
- #property_keys ⇒ Object
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) ⇒ FundedOrganization
Returns a new instance of FundedOrganization.
8 9 10 11 12 13 14 15 16 |
# File 'lib/crunchbase/model/funded_organization.rb', line 8 def initialize(json) property_keys.each { |v| instance_variable_set("@#{v}", json[v] || nil) } %w[created_at updated_at].each { |v| instance_variable_set("@#{v}", Time.at(json[v])) } end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/crunchbase/model/funded_organization.rb', line 6 def created_at @created_at end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/crunchbase/model/funded_organization.rb', line 6 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/crunchbase/model/funded_organization.rb', line 6 def path @path end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/crunchbase/model/funded_organization.rb', line 6 def type @type end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
6 7 8 |
# File 'lib/crunchbase/model/funded_organization.rb', line 6 def updated_at @updated_at end |
Instance Method Details
#property_keys ⇒ Object
18 19 20 21 22 |
# File 'lib/crunchbase/model/funded_organization.rb', line 18 def property_keys %w[ type name path created_at updated_at ] end |