Sha256: 1fd4151cb05446bd2ab3b1e56cb2d26df1f0b76ed83b3f231bd0ad088b51f94d

Contents?: true

Size: 611 Bytes

Versions: 6

Compression:

Stored size: 611 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

6 entries across 6 versions & 1 rubygems

Version Path
crunchbase_v2-0.0.6 lib/crunchbase/sub_organization.rb
crunchbase_v2-0.0.5 lib/crunchbase/sub_organization.rb
crunchbase_v2-0.0.4 lib/crunchbase/sub_organization.rb
crunchbase_v2-0.0.3 lib/crunchbase/sub_organization.rb
crunchbase_v2-0.0.2 lib/crunchbase/sub_organization.rb
crunchbase_v2-0.0.1 lib/crunchbase/sub_organization.rb