Sha256: 0a556f635fb23eaeb90f84e4a2a2746fecc68755c1fd1f100a46b89c04c5f5ae
Contents?: true
Size: 600 Bytes
Versions: 4
Compression:
Stored size: 600 Bytes
Contents
# encode: utf-8 # http://api.crunchbase.com/v/2/organization/facebook/images module Crunchbase class Image < CBEntity RESOURCE_NAME = 'image' RESOURCE_LIST = 'images' 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 = 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-0.0.4 | lib/crunchbase/image.rb |
crunchbase_v2-0.0.3 | lib/crunchbase/image.rb |
crunchbase_v2-0.0.2 | lib/crunchbase/image.rb |
crunchbase_v2-0.0.1 | lib/crunchbase/image.rb |