Sha256: b5eede94ab9e5f450de204a49c327730920e3c5b3277662baae53cd5e7a4a90b

Contents?: true

Size: 720 Bytes

Versions: 4

Compression:

Stored size: 720 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_name']
      @created_at           = Time.at(json['created_at']).utc
      @updated_at           = Time.at(json['updated_at']).utc
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
crunchbase_v2-0.0.4 lib/crunchbase/location.rb
crunchbase_v2-0.0.3 lib/crunchbase/location.rb
crunchbase_v2-0.0.2 lib/crunchbase/location.rb
crunchbase_v2-0.0.1 lib/crunchbase/location.rb