Sha256: d7bbf3fda7f6572683feb9a29002fefe0dbd21b6c3f37432e5d268c105b10858

Contents?: true

Size: 658 Bytes

Versions: 3

Compression:

Stored size: 658 Bytes

Contents

# encoding: utf-8

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

3 entries across 3 versions & 1 rubygems

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