module Braintree class ExchangeRateQuoteRequest include BaseModule # :nodoc: attr_reader :quotes def initialize(attributes) # :nodoc: @attrs = attributes.keys set_instance_variables_from_hash(attributes) @quotes = (@quotes || []).map { |quote_hash| ExchangeRateQuoteInput.new(quote_hash) } end def inspect # :nodoc: inspected_attributes = @attrs.map { |attr| "#{attr}:#{send(attr).inspect}" } "#<#{self.class} #{inspected_attributes.join(" ")}>" end end end