Class: Crunchbase::Model::AcquiredBy

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

Constant Summary collapse

RESOURCE_LIST =
'acquired_by'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#convert_date!, #fetch, #instance_multi_relationship_objects, #instance_relationships_object, #instance_timestamps, #one_to_many, #one_to_one, #parse_hash_items, #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) ⇒ AcquiredBy

Returns a new instance of AcquiredBy.



13
14
15
# File 'lib/crunchbase/model/acquired_by.rb', line 13

def initialize(json)
  super(json)
end

Instance Attribute Details

#acquireeObject (readonly)

Returns the value of attribute acquiree.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def acquiree
  @acquiree
end

#acquirerObject (readonly)

Returns the value of attribute acquirer.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def acquirer
  @acquirer
end

#acquisition_statusObject (readonly)

Returns the value of attribute acquisition_status.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def acquisition_status
  @acquisition_status
end

#acquisition_typeObject (readonly)

Returns the value of attribute acquisition_type.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def acquisition_type
  @acquisition_type
end

#announced_onObject (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

#announced_on_trust_codeObject (readonly)

Returns the value of attribute announced_on_trust_code.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def announced_on_trust_code
  @announced_on_trust_code
end

#api_pathObject (readonly)

Returns the value of attribute api_path.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def api_path
  @api_path
end

#completed_onObject (readonly)

Returns the value of attribute completed_on.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def completed_on
  @completed_on
end

#completed_on_trust_codeObject (readonly)

Returns the value of attribute completed_on_trust_code.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def completed_on_trust_code
  @completed_on_trust_code
end

#created_atObject (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

#disposition_of_acquiredObject (readonly)

Returns the value of attribute disposition_of_acquired.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def disposition_of_acquired
  @disposition_of_acquired
end

#payment_typeObject (readonly)

Returns the value of attribute payment_type.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def payment_type
  @payment_type
end

#priceObject (readonly)

Returns the value of attribute price.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def price
  @price
end

#price_currency_codeObject (readonly)

Returns the value of attribute price_currency_code.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def price_currency_code
  @price_currency_code
end

#price_usdObject (readonly)

Returns the value of attribute price_usd.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def price_usd
  @price_usd
end

#type_nameObject (readonly)

Returns the value of attribute type_name.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def type_name
  @type_name
end

#updated_atObject (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

#uuidObject (readonly)

Returns the value of attribute uuid.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def uuid
  @uuid
end

#web_pathObject (readonly)

Returns the value of attribute web_path.



8
9
10
# File 'lib/crunchbase/model/acquired_by.rb', line 8

def web_path
  @web_path
end

Instance Method Details

#date_keysObject



28
29
30
# File 'lib/crunchbase/model/acquired_by.rb', line 28

def date_keys
  %w(announced_on completed_on)
end

#property_keysObject



24
25
26
# File 'lib/crunchbase/model/acquired_by.rb', line 24

def property_keys
  %w(api_path web_path price price_currency_code price_usd payment_type acquisition_type acquisition_status disposition_of_acquired announced_on announced_on_trust_code completed_on completed_on_trust_code created_at updated_at)
end

#relationship_listsObject



17
18
19
20
21
22
# File 'lib/crunchbase/model/acquired_by.rb', line 17

def relationship_lists
  {
    'aquiree' => Organization,
    'acquirer' => Organization
  }
end