Class: Client
- Inherits:
-
Object
- Object
- Client
- Defined in:
- lib/ulms_client.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
readonly
Returns the value of attribute agent.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(version:, mode:, agent:) ⇒ Client
constructor
A new instance of Client.
- #to_s ⇒ Object
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
#agent ⇒ Object (readonly)
Returns the value of attribute agent.
43 44 45 |
# File 'lib/ulms_client.rb', line 43 def agent @agent end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
43 44 45 |
# File 'lib/ulms_client.rb', line 43 def mode @mode end |
#version ⇒ Object (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_s ⇒ Object
51 52 53 |
# File 'lib/ulms_client.rb', line 51 def to_s "#{@version}/#{@mode}/#{@agent}" end |