Sha256: 1e15854435f353caf73ade3a85e8e8330516715303359874cc743ab4111302ab
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crunchbase_v2-0.0.6 | lib/crunchbase/primary_image.rb |