Class: Lightspeed::Images
- Inherits:
-
Collection
- Object
- Collection
- Lightspeed::Images
- Defined in:
- lib/lightspeed/images.rb
Constant Summary
Constants inherited from Collection
Instance Attribute Summary
Attributes inherited from Collection
Instance Method Summary collapse
Methods inherited from Collection
#account, #all, #all_loaded, #as_json, #client, collection_name, #create, #destroy, #each, #each_loaded, #each_page, #enum, #enum_page, #find, #first, #first_loaded, #initialize, #inspect, #load_relations_default, #page, resource_class, resource_name, #size, #size_loaded, #to_json, #unload, #update
Constructor Details
This class inherits a constructor from Lightspeed::Collection
Instance Method Details
#base_path ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/lightspeed/images.rb', line 7 def base_path if context.is_a?(Lightspeed::Item) || context.is_a?(Lightspeed::ItemMatrix) "#{context.base_path}/#{resource_name}" else super end end |