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.



39
40
41
42
43
44
# File 'lib/iota.rb', line 39

def initialize(settings = {})
  setSettings(settings)
  @utils = IOTA::Utils::Utils.new
  @validator = @utils.validator
  @multisig = IOTA::Multisig::Multisig.new(self)
end

Instance Attribute Details

#apiObject (readonly)

Returns the value of attribute api.



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

def api
  @api
end

#batch_sizeObject (readonly)

Returns the value of attribute batch_size.



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

def batch_size
  @batch_size
end

#brokerObject (readonly)

Returns the value of attribute broker.



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

def broker
  @broker
end

#hostObject (readonly)

Returns the value of attribute host.



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

def host
  @host
end

#multisigObject (readonly)

Returns the value of attribute multisig.



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

def multisig
  @multisig
end

#portObject (readonly)

Returns the value of attribute port.



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

def port
  @port
end

#providerObject (readonly)

Returns the value of attribute provider.



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

def provider
  @provider
end

#sandboxObject (readonly)

Returns the value of attribute sandbox.



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

def sandbox
  @sandbox
end

#tokenObject (readonly)

Returns the value of attribute token.



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

def token
  @token
end

#utilsObject (readonly)

Returns the value of attribute utils.



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

def utils
  @utils
end

#validatorObject (readonly)

Returns the value of attribute validator.



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

def validator
  @validator
end

#versionObject (readonly)

Returns the value of attribute version.



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

def version
  @version
end

Instance Method Details

#changeNode(settings = {}) ⇒ Object



46
47
48
49
# File 'lib/iota.rb', line 46

def changeNode(settings = {})
  setSettings(settings)
  self
end