Class: Jung::Campaign

Inherits:
List
  • Object
show all
Defined in:
lib/jung/campaign.rb

Instance Attribute Summary collapse

Attributes inherited from List

#config, #recipients

Instance Method Summary collapse

Methods inherited from List

#create_recipient, #find_recipient_by_address, #load_driver

Constructor Details

#initialize(options) ⇒ Campaign

Returns a new instance of Campaign.



7
8
9
10
11
12
13
14
# File 'lib/jung/campaign.rb', line 7

def initialize(options)
  @name = options[:name]
  @subject = options[:subject]
  @sender = options[:sender]
  @message = options[:message]

  super options
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/jung/campaign.rb', line 4

def id
  @id
end

#messageObject

Returns the value of attribute message.



5
6
7
# File 'lib/jung/campaign.rb', line 5

def message
  @message
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/jung/campaign.rb', line 5

def name
  @name
end

#senderObject

Returns the value of attribute sender.



5
6
7
# File 'lib/jung/campaign.rb', line 5

def sender
  @sender
end

#subjectObject

Returns the value of attribute subject.



5
6
7
# File 'lib/jung/campaign.rb', line 5

def subject
  @subject
end