Class: Square::Connect::Money
- Inherits:
-
Object
- Object
- Square::Connect::Money
- Defined in:
- lib/square/connect/money.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Money
constructor
A new instance of Money.
Constructor Details
#initialize(attributes = {}) ⇒ Money
Returns a new instance of Money.
6 7 8 9 |
# File 'lib/square/connect/money.rb', line 6 def initialize(attributes = {}) self.amount = attributes[:amount] self.currency_code = attributes[:currency_code] end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/square/connect/money.rb', line 4 def amount @amount end |
#currency_code ⇒ Object
Returns the value of attribute currency_code.
4 5 6 |
# File 'lib/square/connect/money.rb', line 4 def currency_code @currency_code end |