Class: Postmen::Money
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
Instance Method Summary collapse
-
#initialize(options) ⇒ Money
constructor
A new instance of Money.
Methods included from Common
Constructor Details
#initialize(options) ⇒ Money
Returns a new instance of Money.
8 9 10 11 |
# File 'lib/postmen/money.rb', line 8 def initialize() @amount = [:amount] @currency = [:currency] end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
5 6 7 |
# File 'lib/postmen/money.rb', line 5 def amount @amount end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
5 6 7 |
# File 'lib/postmen/money.rb', line 5 def currency @currency end |