Class: WishSimple::Product

Inherits:
Resource show all
Defined in:
lib/wishsimple/product.rb

Constant Summary collapse

ATTRS =
[:uid]

Instance Attribute Summary

Attributes inherited from Resource

#created_at

Instance Method Summary collapse

Methods inherited from Resource

create, #destroy, #save

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