Sha256: a986574520cdd9c2eba912a428474033971a3a45b68e62c06a55416611776318

Contents?: true

Size: 616 Bytes

Versions: 3

Compression:

Stored size: 616 Bytes

Contents

# encoding: utf-8

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

module Crunchbase
  class SubOrganization < CBEntity
    
    RESOURCE_LIST = 'sub_organizations'

    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

3 entries across 3 versions & 1 rubygems

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