Class: WishSimple::Product
- Defined in:
- lib/wishsimple/product.rb
Constant Summary collapse
- ATTRS =
[:uid]
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uid) ⇒ Product
constructor
A new instance of Product.
Methods inherited from Resource
Constructor Details
#initialize(uid) ⇒ Product
Returns a new instance of Product.
8 9 10 |
# File 'lib/wishsimple/product.rb', line 8 def initialize(uid) self.uid = uid.to_s end |
Instance Method Details
#==(other) ⇒ Object
12 13 14 |
# File 'lib/wishsimple/product.rb', line 12 def ==(other) super || (other.class == self.class && other.uid == self.uid) end |