Sha256: 67217c7fc0f37f2b5db5db43d94331bb7b9051edc1a4da6b5a79d59c4df2df3e

Contents?: true

Size: 604 Bytes

Versions: 4

Compression:

Stored size: 604 Bytes

Contents

# encoding: utf-8

# https://api.crunchbase.com/v/2/organization/facebook/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.2 lib/crunchbase/founder.rb
crunchbase_v2-1.1.1 lib/crunchbase/founder.rb
crunchbase_v2-1.1.0 lib/crunchbase/founder.rb
crunchbase_v2-1.0.0 lib/crunchbase/founder.rb