Sha256: 01aba7a1d4a3c49db7b75c511fd0d904279f76abf81a0095ac64a2436423b55a

Contents?: true

Size: 859 Bytes

Versions: 6

Compression:

Stored size: 859 Bytes

Contents

# encoding: utf-8

# http://api.crunchbase.com/v/2/organization/facebook/headquarters

module Crunchbase
  class Headquarter < CBEntity
    RESOURCE_LIST = 'headquarters'

    attr_reader :type_name, :name, :street_1, :street_2, :city, :city_uuid, :city_path, 
                :region, :country_code, :created_at, :updated_at
                
    def initialize(json)
      @type_name      = json['type']
      @name           = json['name']
      @street_1       = json['street_1']
      @street_2       = json['street_2']
      @city           = json['city']
      @city_uuid      = json['city_uuid']
      @city_path      = json['city_path']
      @region         = json['region']
      @country_code   = json['country_code']
      @created_at     = Time.at(json['created_at']).utc
      @updated_at     = Time.at(json['updated_at']).utc
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
crunchbase_v2-0.0.6 lib/crunchbase/headquarter.rb
crunchbase_v2-0.0.5 lib/crunchbase/headquarter.rb
crunchbase_v2-0.0.4 lib/crunchbase/headquarter.rb
crunchbase_v2-0.0.3 lib/crunchbase/headquarter.rb
crunchbase_v2-0.0.2 lib/crunchbase/headquarter.rb
crunchbase_v2-0.0.1 lib/crunchbase/headquarter.rb