Sha256: 2539006c6d11afe6bf167200d7065a5bf26144bd4ade22df2cfa10486a53d859

Contents?: true

Size: 659 Bytes

Versions: 4

Compression:

Stored size: 659 Bytes

Contents

# encoding: utf-8

# https://api.crunchbase.com/v/2/organization/facebook/categories

module Crunchbase
  class Category < CBEntity
    
    RESOURCE_NAME = 'category'
    RESOURCE_LIST = 'categories'

    attr_reader :type_name, :name, :uuid, :path, :created_at, :updated_at, :number_of_organizations

    def initialize(json)
      @type_name    = json['type']
      @name         = json['name']
      @uuid         = json['uuid']
      @path         = json['path']
      @created_at   = Time.at(json['created_at']).utc
      @updated_at   = Time.at(json['updated_at']).utc
      @number_of_organizations = json['number_of_organizations']
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
crunchbase_v2-1.1.2 lib/crunchbase/category.rb
crunchbase_v2-1.1.1 lib/crunchbase/category.rb
crunchbase_v2-1.1.0 lib/crunchbase/category.rb
crunchbase_v2-1.0.0 lib/crunchbase/category.rb