Class: Crunchbase::Model::AcquiredBy
- Defined in:
- lib/crunchbase/model/acquired_by.rb
Constant Summary collapse
- RESOURCE_LIST =
'acquired_by'
Instance Attribute Summary collapse
-
#announced_on ⇒ Object
readonly
Returns the value of attribute announced_on.
-
#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.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Attributes inherited from Entity
Instance Method Summary collapse
- #date_keys ⇒ Object
-
#initialize(json) ⇒ AcquiredBy
constructor
A new instance of AcquiredBy.
- #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) ⇒ AcquiredBy
Returns a new instance of AcquiredBy.
10 11 12 13 14 15 16 17 18 |
# File 'lib/crunchbase/model/acquired_by.rb', line 10 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
#announced_on ⇒ Object (readonly)
Returns the value of attribute announced_on.
8 9 10 |
# File 'lib/crunchbase/model/acquired_by.rb', line 8 def announced_on @announced_on end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/crunchbase/model/acquired_by.rb', line 8 def created_at @created_at end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/crunchbase/model/acquired_by.rb', line 8 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
8 9 10 |
# File 'lib/crunchbase/model/acquired_by.rb', line 8 def path @path end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/crunchbase/model/acquired_by.rb', line 8 def updated_at @updated_at end |
Instance Method Details
#date_keys ⇒ Object
24 25 26 |
# File 'lib/crunchbase/model/acquired_by.rb', line 24 def date_keys %w[ announced_on ] end |
#property_keys ⇒ Object
20 21 22 |
# File 'lib/crunchbase/model/acquired_by.rb', line 20 def property_keys %w[ announced_on name path created_at updated_at ] end |