Class: Remitano::Client::CoinCollection
- Inherits:
-
Collection
- Object
- Collection
- Remitano::Client::CoinCollection
- Defined in:
- lib/remitano/client/coin_collection.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#coin ⇒ Object
readonly
Returns the value of attribute coin.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Attributes inherited from Collection
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(coin, config:) ⇒ CoinCollection
constructor
A new instance of CoinCollection.
Methods inherited from Collection
Constructor Details
#initialize(coin, config:) ⇒ CoinCollection
Returns a new instance of CoinCollection.
7 8 9 10 |
# File 'lib/remitano/client/coin_collection.rb', line 7 def initialize(coin, config:) @coin = coin super(config: config) end |
Instance Attribute Details
#coin ⇒ Object (readonly)
Returns the value of attribute coin.
5 6 7 |
# File 'lib/remitano/client/coin_collection.rb', line 5 def coin @coin end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/remitano/client/coin_collection.rb', line 5 def config @config end |
Class Method Details
.of_coin(coin, config:) ⇒ Object
13 14 15 |
# File 'lib/remitano/client/coin_collection.rb', line 13 def of_coin(coin, config:) new(coin, config: config) end |