Class: Agent
- Inherits:
-
Object
- Object
- Agent
- Defined in:
- lib/ulms_client.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label, account) ⇒ Agent
constructor
A new instance of Agent.
- #to_s ⇒ Object
Constructor Details
#initialize(label, account) ⇒ Agent
Returns a new instance of Agent.
32 33 34 35 |
# File 'lib/ulms_client.rb', line 32 def initialize(label, account) @label = label @account = account end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
30 31 32 |
# File 'lib/ulms_client.rb', line 30 def account @account end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
30 31 32 |
# File 'lib/ulms_client.rb', line 30 def label @label end |
Instance Method Details
#to_s ⇒ Object
37 38 39 |
# File 'lib/ulms_client.rb', line 37 def to_s "#{@label}.#{@account}" end |