Sha256: 80d97778668b5e52c5b17e1f2873781388399d76a4a6d9c57bc16f9584f39a8b

Contents?: true

Size: 666 Bytes

Versions: 2

Compression:

Stored size: 666 Bytes

Contents

# encoding: utf-8

# http://api.crunchbase.com/v/2/organization/facebook/categories?user_key=key
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

2 entries across 2 versions & 1 rubygems

Version Path
crunchbase_v2-0.0.6 lib/crunchbase/category.rb
crunchbase_v2-0.0.5 lib/crunchbase/category.rb