Class: Crunchbase::Model::Image

Inherits:
Entity
  • Object
show all
Defined in:
lib/crunchbase/model/image.rb

Direct Known Subclasses

PrimaryImage

Constant Summary collapse

RESOURCE_LIST =
'images'.freeze

Instance Attribute Summary collapse

Attributes inherited from Entity

#type_name, #uuid

Instance Method Summary collapse

Methods inherited from Entity

#convert_date!, #date_keys, #fetch, #initialize, #instance_multi_relationship_objects, #instance_relationships_object, #instance_timestamps, #one_to_many, #one_to_one, #parse_hash_items, #relationship_lists, #set_relationships_object, #set_variables, #setup_relationships_data!, #special_relationship, #verify_item?

Methods included from Request::Client

#api, #array_from_list, #funding_rounds_lists, #get, #kclass_name, #list, #organization_lists, #parsing_from_list, #person_lists, #total_items_from_list

Constructor Details

This class inherits a constructor from Crunchbase::Model::Entity

Instance Attribute Details

#asset_pathObject (readonly)

Returns the value of attribute asset_path.



7
8
9
# File 'lib/crunchbase/model/image.rb', line 7

def asset_path
  @asset_path
end

#asset_urlObject (readonly)

Returns the value of attribute asset_url.



7
8
9
# File 'lib/crunchbase/model/image.rb', line 7

def asset_url
  @asset_url
end

#content_typeObject (readonly)

Returns the value of attribute content_type.



7
8
9
# File 'lib/crunchbase/model/image.rb', line 7

def content_type
  @content_type
end

#created_atObject (readonly)

Returns the value of attribute created_at.



7
8
9
# File 'lib/crunchbase/model/image.rb', line 7

def created_at
  @created_at
end

#filesizeObject (readonly)

Returns the value of attribute filesize.



7
8
9
# File 'lib/crunchbase/model/image.rb', line 7

def filesize
  @filesize
end

#heightObject (readonly)

Returns the value of attribute height.



7
8
9
# File 'lib/crunchbase/model/image.rb', line 7

def height
  @height
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



7
8
9
# File 'lib/crunchbase/model/image.rb', line 7

def updated_at
  @updated_at
end

#widthObject (readonly)

Returns the value of attribute width.



7
8
9
# File 'lib/crunchbase/model/image.rb', line 7

def width
  @width
end

Instance Method Details

#property_keysObject



9
10
11
12
13
# File 'lib/crunchbase/model/image.rb', line 9

def property_keys
  %w(
    asset_url asset_path content_type height width filesize created_at updated_at
  )
end