Class: Account

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#audienceObject (readonly)

Returns the value of attribute audience.



17
18
19
# File 'lib/ulms_client.rb', line 17

def audience
  @audience
end

#labelObject (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_sObject



24
25
26
# File 'lib/ulms_client.rb', line 24

def to_s
  "#{@label}.#{@audience}"
end