Method: Printful::OrderEstimateRetailCosts#==

Defined in:
lib/printful_client/models/order_estimate_retail_costs.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



144
145
146
147
148
149
150
151
152
153
154
# File 'lib/printful_client/models/order_estimate_retail_costs.rb', line 144

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      currency == o.currency &&
      subtotal == o.subtotal &&
      discount == o.discount &&
      shipping == o.shipping &&
      tax == o.tax &&
      vat == o.vat &&
      total == o.total
end