Sha256: 388e65c7923d4fe0b9cd257a163026e00258c66d19c56bddbad872c9fd84432a

Contents?: true

Size: 608 Bytes

Versions: 4

Compression:

Stored size: 608 Bytes

Contents

# encoding: utf-8

# https://api.crunchbase.com/v/2/organization/#{permalink}/founders?user_key=key

module Crunchbase
  class Founder < CBEntity
    
    RESOURCE_LIST = 'founders'
    
    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('person/', ''))
      @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-1.1.6 lib/crunchbase/founder.rb
crunchbase_v2-1.1.5 lib/crunchbase/founder.rb
crunchbase_v2-1.1.4 lib/crunchbase/founder.rb
crunchbase_v2-1.1.3 lib/crunchbase/founder.rb