Class: Solrengine::Ui::SendTransactionFormComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Solrengine::Ui::SendTransactionFormComponent
- Defined in:
- app/components/solrengine/ui/send_transaction_form_component.rb
Instance Attribute Summary collapse
-
#action_url ⇒ Object
readonly
Returns the value of attribute action_url.
-
#network ⇒ Object
readonly
Returns the value of attribute network.
-
#wallet_address ⇒ Object
readonly
Returns the value of attribute wallet_address.
Instance Method Summary collapse
- #connected? ⇒ Boolean
-
#initialize(wallet_address: nil, network: "devnet", action_url: "/transfers") ⇒ SendTransactionFormComponent
constructor
A new instance of SendTransactionFormComponent.
Constructor Details
#initialize(wallet_address: nil, network: "devnet", action_url: "/transfers") ⇒ SendTransactionFormComponent
Returns a new instance of SendTransactionFormComponent.
8 9 10 11 12 |
# File 'app/components/solrengine/ui/send_transaction_form_component.rb', line 8 def initialize(wallet_address: nil, network: "devnet", action_url: "/transfers") @wallet_address = wallet_address @network = network @action_url = action_url end |
Instance Attribute Details
#action_url ⇒ Object (readonly)
Returns the value of attribute action_url.
6 7 8 |
# File 'app/components/solrengine/ui/send_transaction_form_component.rb', line 6 def action_url @action_url end |
#network ⇒ Object (readonly)
Returns the value of attribute network.
6 7 8 |
# File 'app/components/solrengine/ui/send_transaction_form_component.rb', line 6 def network @network end |
#wallet_address ⇒ Object (readonly)
Returns the value of attribute wallet_address.
6 7 8 |
# File 'app/components/solrengine/ui/send_transaction_form_component.rb', line 6 def wallet_address @wallet_address end |
Instance Method Details
#connected? ⇒ Boolean
14 15 16 |
# File 'app/components/solrengine/ui/send_transaction_form_component.rb', line 14 def connected? wallet_address.present? end |