Class: Crunchbase::Model::PrimaryLocation

Inherits:
Location show all
Defined in:
lib/crunchbase/model/primary_location.rb

Constant Summary

Constants inherited from Location

Location::RESOURCE_LIST

Instance Attribute Summary collapse

Attributes inherited from Location

#city, #city_web_path, #continent, #continent_web_path, #country, #country_code2, #country_code3, #country_web_path, #created_at, #location_type, #name, #parent_location_uuid, #parent_locations_total_items, #region, #region_code2, #region_web_path, #updated_at, #web_path

Attributes inherited from Entity

#type_name, #uuid

Instance Method Summary collapse

Methods inherited from Location

#property_keys

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, #property_keys, #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) ⇒ PrimaryLocation

Returns a new instance of PrimaryLocation.



7
8
9
# File 'lib/crunchbase/model/primary_location.rb', line 7

def initialize(json)
  super
end

Instance Attribute Details

#parent_locationsObject (readonly)

Returns the value of attribute parent_locations.



5
6
7
# File 'lib/crunchbase/model/primary_location.rb', line 5

def parent_locations
  @parent_locations
end

Instance Method Details

#relationship_listsObject



11
12
13
14
15
# File 'lib/crunchbase/model/primary_location.rb', line 11

def relationship_lists
  {
    'parent_locations' => ParentLocation
  }
end