Class: Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version:, mode:, agent:) ⇒ Client

Returns a new instance of Client.



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

def initialize(version:, mode:, agent:)
  @version = version
  @mode = mode
  @agent = agent
end

Instance Attribute Details

#agentObject (readonly)

Returns the value of attribute agent.



43
44
45
# File 'lib/ulms_client.rb', line 43

def agent
  @agent
end

#modeObject (readonly)

Returns the value of attribute mode.



43
44
45
# File 'lib/ulms_client.rb', line 43

def mode
  @mode
end

#versionObject (readonly)

Returns the value of attribute version.



43
44
45
# File 'lib/ulms_client.rb', line 43

def version
  @version
end

Instance Method Details

#to_sObject



51
52
53
# File 'lib/ulms_client.rb', line 51

def to_s
  "#{@version}/#{@mode}/#{@agent}"
end