Method: Patch::Inventory#==
- Defined in:
- lib/patch_ruby/models/inventory.rb
#==(o) ⇒ Object
Checks equality by comparing each attribute.
154 155 156 157 158 159 160 161 162 |
# File 'lib/patch_ruby/models/inventory.rb', line 154 def ==(o) return true if self.equal?(o) self.class == o.class && vintage_year == o.vintage_year && amount_available == o.amount_available && price == o.price && currency == o.currency && unit == o.unit end |