Class: Crunchbase::Model::Location
- Defined in:
- lib/crunchbase/model/location.rb
Direct Known Subclasses
Constant Summary collapse
- RESOURCE_LIST =
'locations'.freeze
Instance Attribute Summary collapse
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#city_web_path ⇒ Object
readonly
Returns the value of attribute city_web_path.
-
#continent ⇒ Object
readonly
Returns the value of attribute continent.
-
#continent_web_path ⇒ Object
readonly
Returns the value of attribute continent_web_path.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#country_code2 ⇒ Object
readonly
Returns the value of attribute country_code2.
-
#country_code3 ⇒ Object
readonly
Returns the value of attribute country_code3.
-
#country_web_path ⇒ Object
readonly
Returns the value of attribute country_web_path.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#location_type ⇒ Object
readonly
Returns the value of attribute location_type.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parent_location_uuid ⇒ Object
readonly
Returns the value of attribute parent_location_uuid.
-
#parent_locations ⇒ Object
readonly
Returns the value of attribute parent_locations.
-
#parent_locations_total_items ⇒ Object
readonly
Returns the value of attribute parent_locations_total_items.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#region_code2 ⇒ Object
readonly
Returns the value of attribute region_code2.
-
#region_web_path ⇒ Object
readonly
Returns the value of attribute region_web_path.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#web_path ⇒ Object
readonly
Returns the value of attribute web_path.
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize(json) ⇒ Location
constructor
A new instance of Location.
- #property_keys ⇒ Object
- #relationship_lists ⇒ Object
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, #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) ⇒ Location
Returns a new instance of Location.
18 19 20 |
# File 'lib/crunchbase/model/location.rb', line 18 def initialize(json) super end |
Instance Attribute Details
#city ⇒ Object (readonly)
Returns the value of attribute city.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def city @city end |
#city_web_path ⇒ Object (readonly)
Returns the value of attribute city_web_path.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def city_web_path @city_web_path end |
#continent ⇒ Object (readonly)
Returns the value of attribute continent.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def continent @continent end |
#continent_web_path ⇒ Object (readonly)
Returns the value of attribute continent_web_path.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def continent_web_path @continent_web_path end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def country @country end |
#country_code2 ⇒ Object (readonly)
Returns the value of attribute country_code2.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def country_code2 @country_code2 end |
#country_code3 ⇒ Object (readonly)
Returns the value of attribute country_code3.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def country_code3 @country_code3 end |
#country_web_path ⇒ Object (readonly)
Returns the value of attribute country_web_path.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def country_web_path @country_web_path end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def created_at @created_at end |
#location_type ⇒ Object (readonly)
Returns the value of attribute location_type.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def location_type @location_type end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def name @name end |
#parent_location_uuid ⇒ Object (readonly)
Returns the value of attribute parent_location_uuid.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def parent_location_uuid @parent_location_uuid end |
#parent_locations ⇒ Object (readonly)
Returns the value of attribute parent_locations.
14 15 16 |
# File 'lib/crunchbase/model/location.rb', line 14 def parent_locations @parent_locations end |
#parent_locations_total_items ⇒ Object (readonly)
Returns the value of attribute parent_locations_total_items.
16 17 18 |
# File 'lib/crunchbase/model/location.rb', line 16 def parent_locations_total_items @parent_locations_total_items end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def region @region end |
#region_code2 ⇒ Object (readonly)
Returns the value of attribute region_code2.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def region_code2 @region_code2 end |
#region_web_path ⇒ Object (readonly)
Returns the value of attribute region_web_path.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def region_web_path @region_web_path end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def updated_at @updated_at end |
#web_path ⇒ Object (readonly)
Returns the value of attribute web_path.
7 8 9 |
# File 'lib/crunchbase/model/location.rb', line 7 def web_path @web_path end |
Instance Method Details
#property_keys ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/crunchbase/model/location.rb', line 28 def property_keys %w( web_path name location_type parent_location_uuid created_at updated_at city city_web_path region region_web_path region_code2 country country_web_path country_code2 country_code3 continent continent_web_path ) end |
#relationship_lists ⇒ Object
22 23 24 25 26 |
# File 'lib/crunchbase/model/location.rb', line 22 def relationship_lists { 'parent_locations' => ParentLocation } end |