Sha256: fa9c1ad152b6817ac1d681da7dcf1844667330d6b90ab5716e01eee81dd61550
Contents?: true
Size: 586 Bytes
Versions: 4
Compression:
Stored size: 586 Bytes
Contents
# encoding: utf-8 # https://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
4 entries across 4 versions & 1 rubygems