Method: OpenapiClient::ExchangeRateDetails#==

Defined in:
lib/openapi_client/models/exchange_rate_details.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



142
143
144
145
146
147
148
149
150
151
152
153
154
# File 'lib/openapi_client/models/exchange_rate_details.rb', line 142

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      inquiry_rate_id == o.inquiry_rate_id &&
      foreign_currency == o.foreign_currency &&
      foreign_amount == o.foreign_amount &&
      exchange_rate == o.exchange_rate &&
      dcc_offered == o.dcc_offered &&
      exchange_rate_source_timestamp == o.exchange_rate_source_timestamp &&
      expiration_timestamp == o.expiration_timestamp &&
      margin_rate_percentage == o.margin_rate_percentage &&
      exchange_rate_source_name == o.exchange_rate_source_name
end