Sha256: c81051d34c878f37d50ccd8109063c322102067602e18dbf9ae0eadb93e56279

Contents?: true

Size: 715 Bytes

Versions: 13

Compression:

Stored size: 715 Bytes

Contents

# encoding: utf-8

module Crunchbase
  class Location < CBEntity
    
    RESOURCE_NAME = 'location'
    RESOURCE_LIST = 'locations'

    attr_reader :location_type, :name, :path, :parent_location_uuid, :uuid, 
                :type_name, :created_at, :updated_at

    def initialize(json)
      @location_type        = json['location_type']
      @name                 = json['name']
      @path                 = json['path']
      @parent_location_uuid = json['parent_location_uuid']
      @uuid                 = json['uuid']
      @type_name            = json['type']
      @created_at           = Time.at(json['created_at']).utc
      @updated_at           = Time.at(json['updated_at']).utc
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
crunchbase_v2-1.1.6 lib/crunchbase/location.rb
crunchbase_v2-1.1.5 lib/crunchbase/location.rb
crunchbase_v2-1.1.4 lib/crunchbase/location.rb
crunchbase_v2-1.1.3 lib/crunchbase/location.rb
crunchbase_v2-1.1.2 lib/crunchbase/location.rb
crunchbase_v2-1.1.1 lib/crunchbase/location.rb
crunchbase_v2-1.1.0 lib/crunchbase/location.rb
crunchbase_v2-1.0.0 lib/crunchbase/location.rb
crunchbase_v2-0.0.9 lib/crunchbase/location.rb
crunchbase_v2-0.0.8 lib/crunchbase/location.rb
crunchbase_v2-0.0.7 lib/crunchbase/location.rb
crunchbase_v2-0.0.6 lib/crunchbase/location.rb
crunchbase_v2-0.0.5 lib/crunchbase/location.rb