class Lightspeed::Image

Public Instance Methods

base_path() click to toggle source
Calls superclass method Lightspeed::Resource#base_path
# File lib/lightspeed/image.rb, line 28
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() click to toggle source
# File lib/lightspeed/image.rb, line 24
def url
  "#{baseImageURL}#{publicID}"
end