Sha256: a82d9b6838af52747f63f688c380c71d94fb33ce3eeb2bc75b3a87c017a98780
Contents?: true
Size: 871 Bytes
Versions: 2
Compression:
Stored size: 871 Bytes
Contents
module Xolphin module Api module Responses class Product < Base def initialize(data) super(data) end def prices @prices ||= begin prices = [] if @data["prices"] @data["prices"].each do |price| prices << ProductPrice.new(price) end end prices end end def id @data["id"] end def brand @data["brand"] end def name @data["name"] end def type @data["type"] end def validation @data["validation"] end def included_domains @data["includedDomains"] end def max_domains @data["maxDomains"] 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/product.rb |
xolphin-api-1.8.0 | lib/xolphin/api/responses/product.rb |