Sha256: 37d8222af3b50cbc9ea728d4d2d4a1d173464f2dffb4fffe97439f9418b9a888

Contents?: true

Size: 614 Bytes

Versions: 8

Compression:

Stored size: 614 Bytes

Contents

# encoding: utf-8

# https://api.crunchbase.com/v/2/person/#{permalink}/founded_companies

module Crunchbase
  class FoundedCompany < CBEntity
    
    RESOURCE_LIST = 'founded_companies'

    attr_reader :type_name, :name, :path, :permalink, :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

8 entries across 8 versions & 1 rubygems

Version Path
crunchbase_v2-1.1.6 lib/crunchbase/founded_company.rb
crunchbase_v2-1.1.5 lib/crunchbase/founded_company.rb
crunchbase_v2-1.1.4 lib/crunchbase/founded_company.rb
crunchbase_v2-1.1.3 lib/crunchbase/founded_company.rb
crunchbase_v2-1.1.2 lib/crunchbase/founded_company.rb
crunchbase_v2-1.1.1 lib/crunchbase/founded_company.rb
crunchbase_v2-1.1.0 lib/crunchbase/founded_company.rb
crunchbase_v2-1.0.0 lib/crunchbase/founded_company.rb