Sha256: 823de4baf542b186a533825c4109ea2b71dccf6d72f00a11f68162e2f188017e
Contents?: true
Size: 590 Bytes
Versions: 4
Compression:
Stored size: 590 Bytes
Contents
# encoding: utf-8 # https://api.crunchbase.com/v/2/organization/#{permalink}/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