Sha256: 0c2793d0a39ded242f70628c92eb37869c167527d355f8377281c1b64da76648

Contents?: true

Size: 624 Bytes

Versions: 4

Compression:

Stored size: 624 Bytes

Contents

# encoding: utf-8

# https://api.crunchbase.com/v/2/organization/#{permalink}/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

4 entries across 4 versions & 1 rubygems

Version Path
crunchbase_v2-1.1.6 lib/crunchbase/primary_image.rb
crunchbase_v2-1.1.5 lib/crunchbase/primary_image.rb
crunchbase_v2-1.1.4 lib/crunchbase/primary_image.rb
crunchbase_v2-1.1.3 lib/crunchbase/primary_image.rb