Class: Braintree::ExchangeRateQuoteInput
- Inherits:
-
Object
- Object
- Braintree::ExchangeRateQuoteInput
- Includes:
- BaseModule
- Defined in:
- lib/braintree/exchange_rate_quote_input.rb
Instance Attribute Summary collapse
-
#attrs ⇒ Object
readonly
Returns the value of attribute attrs.
-
#base_amount ⇒ Object
readonly
Returns the value of attribute base_amount.
-
#base_currency ⇒ Object
readonly
Returns the value of attribute base_currency.
-
#markup ⇒ Object
readonly
Returns the value of attribute markup.
-
#quote_currency ⇒ Object
readonly
Returns the value of attribute quote_currency.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ ExchangeRateQuoteInput
constructor
A new instance of ExchangeRateQuoteInput.
- #inspect ⇒ Object
Methods included from BaseModule
Methods included from BaseModule::Methods
#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class
Constructor Details
#initialize(attributes) ⇒ ExchangeRateQuoteInput
Returns a new instance of ExchangeRateQuoteInput.
11 12 13 14 |
# File 'lib/braintree/exchange_rate_quote_input.rb', line 11 def initialize(attributes) @attrs = attributes.keys set_instance_variables_from_hash(attributes) end |
Instance Attribute Details
#attrs ⇒ Object (readonly)
Returns the value of attribute attrs.
5 6 7 |
# File 'lib/braintree/exchange_rate_quote_input.rb', line 5 def attrs @attrs end |
#base_amount ⇒ Object (readonly)
Returns the value of attribute base_amount.
7 8 9 |
# File 'lib/braintree/exchange_rate_quote_input.rb', line 7 def base_amount @base_amount end |
#base_currency ⇒ Object (readonly)
Returns the value of attribute base_currency.
6 7 8 |
# File 'lib/braintree/exchange_rate_quote_input.rb', line 6 def base_currency @base_currency end |
#markup ⇒ Object (readonly)
Returns the value of attribute markup.
8 9 10 |
# File 'lib/braintree/exchange_rate_quote_input.rb', line 8 def markup @markup end |
#quote_currency ⇒ Object (readonly)
Returns the value of attribute quote_currency.
9 10 11 |
# File 'lib/braintree/exchange_rate_quote_input.rb', line 9 def quote_currency @quote_currency end |
Instance Method Details
#inspect ⇒ Object
16 17 18 19 |
# File 'lib/braintree/exchange_rate_quote_input.rb', line 16 def inspect inspected_attributes = @attrs.map { |attr| "#{attr}:#{send(attr).inspect}" } "#<#{self.class} #{inspected_attributes.join(" ")}>" end |