Class: Lightspeed::Image
Instance Attribute Summary
Attributes inherited from Resource
#account, #attributes, #client, #context, #id
Instance Method Summary collapse
Methods inherited from Resource
#as_json, collection_name, #destroy, fields, #get_transformed_value, id_field, #id_params, #initialize, #inspect, #load, #read_attribute_for_serialization, relationships, #reload, resource_name, #resource_name, #singular_path_parent, #to_json, #update
Constructor Details
This class inherits a constructor from Lightspeed::Resource
Instance Method Details
#base_path ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/lightspeed/image.rb', line 26 def base_path if context.is_a?(Lightspeed::Item) || context.is_a?(Lightspeed::ItemMatrix) "#{context.base_path}/#{resource_name}/#{id}" else super end end |
#url ⇒ Object
22 23 24 |
# File 'lib/lightspeed/image.rb', line 22 def url "#{baseImageURL}#{publicID}" end |