Class: IOTA::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/iota.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#apiObject (readonly)

Returns the value of attribute api.



36
37
38
# File 'lib/iota.rb', line 36

def api
  @api
end

#batch_sizeObject (readonly)

Returns the value of attribute batch_size.



36
37
38
# File 'lib/iota.rb', line 36

def batch_size
  @batch_size
end

#brokerObject (readonly)

Returns the value of attribute broker.



36
37
38
# File 'lib/iota.rb', line 36

def broker
  @broker
end

#hostObject (readonly)

Returns the value of attribute host.



36
37
38
# File 'lib/iota.rb', line 36

def host
  @host
end

#multisigObject (readonly)

Returns the value of attribute multisig.



36
37
38
# File 'lib/iota.rb', line 36

def multisig
  @multisig
end

#portObject (readonly)

Returns the value of attribute port.



36
37
38
# File 'lib/iota.rb', line 36

def port
  @port
end

#providerObject (readonly)

Returns the value of attribute provider.



36
37
38
# File 'lib/iota.rb', line 36

def provider
  @provider
end

#sandboxObject (readonly)

Returns the value of attribute sandbox.



36
37
38
# File 'lib/iota.rb', line 36

def sandbox
  @sandbox
end

#tokenObject (readonly)

Returns the value of attribute token.



36
37
38
# File 'lib/iota.rb', line 36

def token
  @token
end

#utilsObject (readonly)

Returns the value of attribute utils.



36
37
38
# File 'lib/iota.rb', line 36

def utils
  @utils
end

#validatorObject (readonly)

Returns the value of attribute validator.



36
37
38
# File 'lib/iota.rb', line 36

def validator
  @validator
end

#versionObject (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