Sha256: 321a43aa87615d7ee585808e7b3e9fdc728a96430723bbf426d4d3ed2ed881e5

Contents?: true

Size: 619 Bytes

Versions: 3

Compression:

Stored size: 619 Bytes

Contents

# encoding: utf-8

# http://api.crunchbase.com/v/2/organization/facebook/primary_image

module Crunchbase
  class PrimaryImage < CBEntity
    
    RESOURCE_LIST = 'primary_image'

    attr_reader :type_name, :title, :path, :original_path, :created_at, :updated_at
    
    def initialize(json)
      @type_name      = json['type']
      @title          = json['title']
      @original_path  = json['path']
      @path           = json['path'] && (Crunchbase::API.image_url + json['path'])
      @created_at     = Time.at(json['created_at']).utc
      @updated_at     = Time.at(json['updated_at']).utc
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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