Sha256: e2faff8ac7787f5a2c1e6621527f60d646dafd692e6ed12c3c9b7aac475c009d
Contents?: true
Size: 585 Bytes
Versions: 3
Compression:
Stored size: 585 Bytes
Contents
# encoding: utf-8 # http://api.crunchbase.com/v/2/organization/facebook/customers module Crunchbase class Customer < CBEntity RESOURCE_LIST = 'customers' attr_reader :type_name, :name, :permalink, :path, :created_at, :updated_at def initialize(json) @type_name = json['type'] @name = json['name'] @path = json['path'] @permalink = json['path'] && json['path'].gsub('organization/', '') @created_at = Time.at(json['created_at']).utc @updated_at = Time.at(json['updated_at']).utc end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
crunchbase_v2-0.0.9 | lib/crunchbase/customer.rb |
crunchbase_v2-0.0.8 | lib/crunchbase/customer.rb |
crunchbase_v2-0.0.7 | lib/crunchbase/customer.rb |