Class: Solrengine::Ui::TokenListComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Solrengine::Ui::TokenListComponent
- Defined in:
- app/components/solrengine/ui/token_list_component.rb
Instance Attribute Summary collapse
-
#tokens ⇒ Object
readonly
Returns the value of attribute tokens.
Instance Method Summary collapse
-
#initialize(tokens:) ⇒ TokenListComponent
constructor
tokens: array of { symbol:, name:, balance:, icon_uri:, usd_value: }.
Constructor Details
#initialize(tokens:) ⇒ TokenListComponent
tokens: array of { symbol:, name:, balance:, icon_uri:, usd_value: }
9 10 11 |
# File 'app/components/solrengine/ui/token_list_component.rb', line 9 def initialize(tokens:) @tokens = tokens end |
Instance Attribute Details
#tokens ⇒ Object (readonly)
Returns the value of attribute tokens.
6 7 8 |
# File 'app/components/solrengine/ui/token_list_component.rb', line 6 def tokens @tokens end |