class Sterling::API::Product

Attributes

currency[R]
distance[R]
inventory[R]
lastUpdated[R]
location[R]
price[R]
product[R]

Public Class Methods

new(object) click to toggle source
# File lib/sterling/api/product.rb, line 28
def initialize(object)
  object.each do |k,v|
    self.class.class_eval { attr_reader k.to_sym }
    instance_variable_set "@#{k}", object[k]
  end
end