Class: Chain::Config::ClientModule
- Inherits:
-
Chain::ClientModule
- Object
- Chain::ClientModule
- Chain::Config::ClientModule
- Defined in:
- lib/chain/config.rb
Instance Attribute Summary
Attributes inherited from Chain::ClientModule
Instance Method Summary collapse
-
#configure(opts) ⇒ void
Configure specified Chain Core.
-
#info ⇒ Info
Get info on specified Chain Core.
-
#reset(everything: false) ⇒ void
Reset specified Chain Core.
Methods inherited from Chain::ClientModule
Constructor Details
This class inherits a constructor from Chain::ClientModule
Instance Method Details
#configure(opts) ⇒ void
This method returns an undefined value.
Configure specified Chain Core.
156 157 158 |
# File 'lib/chain/config.rb', line 156 def configure(opts) client.conn.request('configure', opts) end |
#info ⇒ Info
Get info on specified Chain Core.
162 163 164 |
# File 'lib/chain/config.rb', line 162 def info Info.new(client.conn.request('info')) end |
#reset(everything: false) ⇒ void
This method returns an undefined value.
Reset specified Chain Core.
145 146 147 |
# File 'lib/chain/config.rb', line 145 def reset(everything: false) client.conn.request('reset', {everything: everything}) end |