Class: CurrencyLayerApi::Currency
- Inherits:
-
Object
- Object
- CurrencyLayerApi::Currency
- Defined in:
- lib/currency_layer_api/currency.rb
Overview
Currency Class for CurrencyLayerApi
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(code:, name:) ⇒ Currency
constructor
A new instance of Currency.
Constructor Details
#initialize(code:, name:) ⇒ Currency
Returns a new instance of Currency.
8 9 10 11 |
# File 'lib/currency_layer_api/currency.rb', line 8 def initialize(code:, name:) @code = code @name = name end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/currency_layer_api/currency.rb', line 6 def code @code end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/currency_layer_api/currency.rb', line 6 def name @name end |