Sha256: 3419b5a8e5a1057c5db54a90badb42638b6c467a8eeb1df8b0e77990d87afe6a
Contents?: true
Size: 482 Bytes
Versions: 2
Compression:
Stored size: 482 Bytes
Contents
module Xolphin module Api module Responses class Products < Base def initialize(data) super(data) end def products @products ||= begin products = [] if _embedded && _embedded["products"] _embedded["products"].each do |product| products << Product.new(product) end end products end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xolphin-api-1.9.0 | lib/xolphin/api/responses/products.rb |
xolphin-api-1.8.0 | lib/xolphin/api/responses/products.rb |