Sha256: 1c9babe815757fbc5f2ffe7b1374028345241ce6a566de9d608628e01e5966a2
Contents?: true
Size: 485 Bytes
Versions: 8
Compression:
Stored size: 485 Bytes
Contents
module Braintree class ExchangeRateQuoteResponse include BaseModule attr_reader :quotes def initialize(attributes) @attrs = attributes.keys set_instance_variables_from_hash(attributes) @quotes = (@quotes || []).map { |quote_hash| ExchangeRateQuote.new(quote_hash) } end def inspect inspected_attributes = @attrs.map { |attr| "#{attr}:#{send(attr).inspect}" } "#<#{self.class} #{inspected_attributes.join(" ")}>" end end end
Version data entries
8 entries across 8 versions & 1 rubygems