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.


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

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


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

def api
  @api
end

#batch_sizeObject (readonly)

Returns the value of attribute batch_size


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

def batch_size
  @batch_size
end

#brokerObject (readonly)

Returns the value of attribute broker


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

def broker
  @broker
end

#hostObject (readonly)

Returns the value of attribute host


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

def host
  @host
end

#multisigObject (readonly)

Returns the value of attribute multisig


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

def multisig
  @multisig
end

#portObject (readonly)

Returns the value of attribute port


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

def port
  @port
end

#providerObject (readonly)

Returns the value of attribute provider


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

def provider
  @provider
end

#sandboxObject (readonly)

Returns the value of attribute sandbox


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

def sandbox
  @sandbox
end

#tokenObject (readonly)

Returns the value of attribute token


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

def token
  @token
end

#utilsObject (readonly)

Returns the value of attribute utils


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

def utils
  @utils
end

#validatorObject (readonly)

Returns the value of attribute validator


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

def validator
  @validator
end

#versionObject (readonly)

Returns the value of attribute version


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

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