Sha256: c603a66d900bb77a12b9caa55bc9328f21a918f910e64cfe0dbe92afe8607389

Contents?: true

Size: 603 Bytes

Versions: 3

Compression:

Stored size: 603 Bytes

Contents

# encoding: utf-8

# http://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

3 entries across 3 versions & 1 rubygems

Version Path
crunchbase_v2-0.0.9 lib/crunchbase/founder.rb
crunchbase_v2-0.0.8 lib/crunchbase/founder.rb
crunchbase_v2-0.0.7 lib/crunchbase/founder.rb