Sha256: 60fc1c2d7f40bffea2719332a8fe5bba21e98ef175733339d97c9d35272b6398

Contents?: true

Size: 575 Bytes

Versions: 4

Compression:

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

    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
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
crunchbase_v2-0.0.4 lib/crunchbase/category.rb
crunchbase_v2-0.0.3 lib/crunchbase/category.rb
crunchbase_v2-0.0.2 lib/crunchbase/category.rb
crunchbase_v2-0.0.1 lib/crunchbase/category.rb