Class: Evolis::PremiumSdk::Sdk

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, port) ⇒ Sdk

Initialize child classes so they can be used directly under a Evolis::PremiumSdk.new

Parameters:

  • host (String)

    host or IP of SDK

  • port (String, Fixnum)

    port of SDK


41
42
43
44
45
46
47
48
49
# File 'lib/evolis/premium_sdk.rb', line 41

def initialize(host, port)
  @addon       = Addon.new host, port
  @cmd         = Cmd.new host, port
  @echo        = Echo.new host, port
  @espf        = Espf.new host, port
  @print       = Print.new host, port
  @setting     = Setting.new host, port
  @supervision = Supervision.new host, port
end

Instance Attribute Details

#addonAddon (readonly)

Returns:


17
18
19
# File 'lib/evolis/premium_sdk.rb', line 17

def addon
  @addon
end

#cmdCmd (readonly)

Returns:


20
21
22
# File 'lib/evolis/premium_sdk.rb', line 20

def cmd
  @cmd
end

#echoEcho (readonly)

Returns:


23
24
25
# File 'lib/evolis/premium_sdk.rb', line 23

def echo
  @echo
end

#espfEspf (readonly)

Returns:


26
27
28
# File 'lib/evolis/premium_sdk.rb', line 26

def espf
  @espf
end

Returns:


29
30
31
# File 'lib/evolis/premium_sdk.rb', line 29

def print
  @print
end

#settingSetting (readonly)

Returns:


32
33
34
# File 'lib/evolis/premium_sdk.rb', line 32

def setting
  @setting
end

#supervisionSupervision (readonly)

Returns:


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

def supervision
  @supervision
end