Sha256: 88874c0167bbeeee0fb2385cfa44c90c5bc820ba9b9bfb4380a9ca7025611191

Contents?: true

Size: 774 Bytes

Versions: 4

Compression:

Stored size: 774 Bytes

Contents

# encoding: utf-8

# http://api.crunchbase.com/v/2/organization/facebook/current_team

module Crunchbase
  class CurrentTeam < CBEntity
    RESOURCE_LIST = 'current_team'

    attr_reader :type_name, :first_name, :last_name, :permalink, :title, :started_on, :ended_on, 
                :created_at, :updated_at

    def initialize(json)
      @type_name    = json['type']
      @first_name   = json['first_name']
      @last_name    = json['last_name']
      @permalink    = (json['permalink'] || json['path'].gsub('person/', ''))
      @title        = json['title']
      @started_on   = json['started_on']
      @ended_on     = json['ended_on']
      @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-0.0.4 lib/crunchbase/current_team.rb
crunchbase_v2-0.0.3 lib/crunchbase/current_team.rb
crunchbase_v2-0.0.2 lib/crunchbase/current_team.rb
crunchbase_v2-0.0.1 lib/crunchbase/current_team.rb