Sha256: de7da3638c9e6dde099a799c40a1d9fd8fad93fe9868ae8760d1a94f5f33ff19

Contents?: true

Size: 492 Bytes

Versions: 4

Compression:

Stored size: 492 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, :path, :created_at, :updated_at

    def initialize(json)
      @type_name    = json['type']
      @name         = json['name']
      @path         = json['path']
      @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/customer.rb
crunchbase_v2-0.0.3 lib/crunchbase/customer.rb
crunchbase_v2-0.0.2 lib/crunchbase/customer.rb
crunchbase_v2-0.0.1 lib/crunchbase/customer.rb