lib/braintree/exchange_rate_quote.rb in braintree-4.15.0 vs lib/braintree/exchange_rate_quote.rb in braintree-4.16.0

- old
+ new

@@ -1,23 +1,23 @@ module Braintree class ExchangeRateQuote - include BaseModule # :nodoc: + include BaseModule attr_reader :attrs attr_reader :base_amount attr_reader :exchange_rate attr_reader :expires_at attr_reader :id attr_reader :quote_amount attr_reader :refreshes_at attr_reader :trade_rate - def initialize(attributes) # :nodoc: + def initialize(attributes) @attrs = attributes.keys set_instance_variables_from_hash(attributes) end - def inspect # :nodoc: + def inspect inspected_attributes = @attrs.map { |attr| "#{attr}:#{send(attr).inspect}" } "#<#{self.class} #{inspected_attributes.join(" ")}>" end end end