Class: Account
- Inherits:
-
Object
- Object
- Account
- Defined in:
- lib/ulms_client.rb
Instance Attribute Summary collapse
-
#audience ⇒ Object
readonly
Returns the value of attribute audience.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label, audience) ⇒ Account
constructor
A new instance of Account.
- #to_s ⇒ Object
Constructor Details
#initialize(label, audience) ⇒ Account
Returns a new instance of Account.
19 20 21 22 |
# File 'lib/ulms_client.rb', line 19 def initialize(label, audience) @label = label @audience = audience end |
Instance Attribute Details
#audience ⇒ Object (readonly)
Returns the value of attribute audience.
17 18 19 |
# File 'lib/ulms_client.rb', line 17 def audience @audience end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
17 18 19 |
# File 'lib/ulms_client.rb', line 17 def label @label end |
Instance Method Details
#to_s ⇒ Object
24 25 26 |
# File 'lib/ulms_client.rb', line 24 def to_s "#{@label}.#{@audience}" end |