class Crunchbase::Model::Location

Constants

RESOURCE_LIST

Attributes

city[R]
city_web_path[R]
continent[R]
continent_web_path[R]
country[R]
country_code2[R]
country_code3[R]
country_web_path[R]
created_at[R]
location_type[R]
name[R]
parent_location_uuid[R]
parent_locations[R]
parent_locations_total_items[R]
region[R]
region_code2[R]
region_web_path[R]
updated_at[R]
web_path[R]

Public Class Methods

new(json) click to toggle source
Calls superclass method Crunchbase::Model::Entity::new
# File lib/crunchbase/model/location.rb, line 18
def initialize(json)
  super
end

Public Instance Methods

property_keys() click to toggle source
# 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() click to toggle source
# File lib/crunchbase/model/location.rb, line 22
def relationship_lists
  {
    'parent_locations' => ParentLocation
  }
end