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.
20 21 22 23 |
# File 'lib/ulms_client.rb', line 20 def initialize(label, audience) @label = label @audience = audience end |
Instance Attribute Details
#audience ⇒ Object (readonly)
Returns the value of attribute audience.
18 19 20 |
# File 'lib/ulms_client.rb', line 18 def audience @audience end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
18 19 20 |
# File 'lib/ulms_client.rb', line 18 def label @label end |
Instance Method Details
#to_s ⇒ Object
25 26 27 |
# File 'lib/ulms_client.rb', line 25 def to_s "#{@label}.#{@audience}" end |