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.



20
21
22
23
# File 'lib/ulms_client.rb', line 20

def initialize(label, audience)
  @label = label
  @audience = audience
end

Instance Attribute Details

#audienceObject (readonly)

Returns the value of attribute audience.



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

def audience
  @audience
end

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



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

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