Class: IOTA::Client
- Inherits:
-
Object
- Object
- IOTA::Client
- Defined in:
- lib/iota.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
-
#batch_size ⇒ Object
readonly
Returns the value of attribute batch_size.
-
#broker ⇒ Object
readonly
Returns the value of attribute broker.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#multisig ⇒ Object
readonly
Returns the value of attribute multisig.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#sandbox ⇒ Object
readonly
Returns the value of attribute sandbox.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#utils ⇒ Object
readonly
Returns the value of attribute utils.
-
#validator ⇒ Object
readonly
Returns the value of attribute validator.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #changeNode(settings = {}) ⇒ Object
-
#initialize(settings = {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(settings = {}) ⇒ Client
Returns a new instance of Client.
38 39 40 41 42 43 44 45 |
# File 'lib/iota.rb', line 38 def initialize(settings = {}) setSettings(settings) @utils = IOTA::Utils::Utils.new @validator = @utils.validator @multisig = IOTA::Multisig::Multisig.new(self) # TODO: Implement MAM # TODO: Implement Flash Channel end |
Instance Attribute Details
#api ⇒ Object (readonly)
Returns the value of attribute api.
36 37 38 |
# File 'lib/iota.rb', line 36 def api @api end |
#batch_size ⇒ Object (readonly)
Returns the value of attribute batch_size.
36 37 38 |
# File 'lib/iota.rb', line 36 def batch_size @batch_size end |
#broker ⇒ Object (readonly)
Returns the value of attribute broker.
36 37 38 |
# File 'lib/iota.rb', line 36 def broker @broker end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
36 37 38 |
# File 'lib/iota.rb', line 36 def host @host end |
#multisig ⇒ Object (readonly)
Returns the value of attribute multisig.
36 37 38 |
# File 'lib/iota.rb', line 36 def multisig @multisig end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
36 37 38 |
# File 'lib/iota.rb', line 36 def port @port end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
36 37 38 |
# File 'lib/iota.rb', line 36 def provider @provider end |
#sandbox ⇒ Object (readonly)
Returns the value of attribute sandbox.
36 37 38 |
# File 'lib/iota.rb', line 36 def sandbox @sandbox end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
36 37 38 |
# File 'lib/iota.rb', line 36 def token @token end |
#utils ⇒ Object (readonly)
Returns the value of attribute utils.
36 37 38 |
# File 'lib/iota.rb', line 36 def utils @utils end |
#validator ⇒ Object (readonly)
Returns the value of attribute validator.
36 37 38 |
# File 'lib/iota.rb', line 36 def validator @validator end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
36 37 38 |
# File 'lib/iota.rb', line 36 def version @version end |
Instance Method Details
#changeNode(settings = {}) ⇒ Object
47 48 49 50 |
# File 'lib/iota.rb', line 47 def changeNode(settings = {}) setSettings(settings) self end |