class Xolphin::Api::Responses::Product

Public Class Methods

new(data) click to toggle source
Calls superclass method Xolphin::Api::Responses::Base::new
# File lib/xolphin/api/responses/product.rb, line 5
def initialize(data)
  super(data)
end

Public Instance Methods

brand() click to toggle source
# File lib/xolphin/api/responses/product.rb, line 27
def brand
  @data["brand"]
end
id() click to toggle source
# File lib/xolphin/api/responses/product.rb, line 23
def id
  @data["id"]
end
included_domains() click to toggle source
# File lib/xolphin/api/responses/product.rb, line 43
def included_domains
  @data["includedDomains"]
end
max_domains() click to toggle source
# File lib/xolphin/api/responses/product.rb, line 47
def max_domains
  @data["maxDomains"]
end
name() click to toggle source
# File lib/xolphin/api/responses/product.rb, line 31
def name
  @data["name"]
end
prices() click to toggle source
# File lib/xolphin/api/responses/product.rb, line 9
def prices
  @prices ||= begin
    prices = []

    if @data["prices"]
      @data["prices"].each do |price|
        prices << ProductPrice.new(price)
      end
    end

    prices
  end
end
type() click to toggle source
# File lib/xolphin/api/responses/product.rb, line 35
def type
  @data["type"]
end
validation() click to toggle source
# File lib/xolphin/api/responses/product.rb, line 39
def validation
  @data["validation"]
end