Sha256: b762cad9eff8efc20a0210869401a9df8f52337a24a6809dd93f22db4bd3725d
Contents?: true
Size: 1.06 KB
Versions: 4
Compression:
Stored size: 1.06 KB
Contents
# encoding: utf-8 # https://api.crunchbase.com/v/2/organization/#{permalink}/offices module Crunchbase class Office < CBEntity RESOURCE_LIST = 'offices' attr_reader :type_name, :name, :street_1, :street_2, :postal_code, :city, :city_path, :region, :region_path, :country, :country_path, :latitude, :longitude, :created_at, :updated_at def initialize(json) @type_name = json['type'] @name = json['name'] @street_1 = json['street_1'] @street_2 = json['street_2'] @postal_code = json['postal_code'] @city = json['city'] @city_path = json['city_path'] @region = json['region'] @region_path = json['region_path'] @country = json['country'] @country_path = json['country_path'] @latitude = json['latitude'] @longitude = json['longitude'] @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-1.1.6 | lib/crunchbase/office.rb |
crunchbase_v2-1.1.5 | lib/crunchbase/office.rb |
crunchbase_v2-1.1.4 | lib/crunchbase/office.rb |
crunchbase_v2-1.1.3 | lib/crunchbase/office.rb |