class VersacommerceAPI::Shop
Shop
object. Use Shop.current
to receive the shop.
Public Class Methods
collection_name()
click to toggle source
# File lib/versacommerce_api/resources/shop.rb, line 6 def self.collection_name 'shop' end
current()
click to toggle source
# File lib/versacommerce_api/resources/shop.rb, line 14 def self.current find(:one, from: '/api/shop.xml') end
element_path(id, prefix_options = {}, query_options = nil)
click to toggle source
# File lib/versacommerce_api/resources/shop.rb, line 10 def self.element_path(id, prefix_options = {}, query_options = nil) "#{prefix(prefix_options)}#{collection_name}#{format_extension}#{query_string(query_options)}" end
Public Instance Methods
to_xml(options = {})
click to toggle source
Calls superclass method
# File lib/versacommerce_api/resources/shop.rb, line 18 def to_xml(options = {}) super(only: [:current_design, :current_sandbox_design, :current_facebook_design]) end