class Xolphin::Api::Responses::Products
Public Class Methods
new(data)
click to toggle source
Calls superclass method
Xolphin::Api::Responses::Base::new
# File lib/xolphin/api/responses/products.rb, line 5 def initialize(data) super(data) end
Public Instance Methods
products()
click to toggle source
# File lib/xolphin/api/responses/products.rb, line 9 def products @products ||= begin products = [] if _embedded && _embedded["products"] _embedded["products"].each do |product| products << Product.new(product) end end products end end