Class: MessageObject

Inherits:
Object
  • Object
show all
Includes:
DataFactory, Foundry, StringFactory, Workflows
Defined in:
lib/sambal-cle/data_objects/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Workflows

menu_link, #open_my_site_by_name, #reset

Constructor Details

#initialize(browser, opts = {}) ⇒ MessageObject

Returns a new instance of MessageObject.



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/sambal-cle/data_objects/message.rb', line 10

def initialize(browser, opts={})
  @browser = browser

  defaults = {
    :subject=>random_alphanums,
    :recipients=>["All Participants"]
  }
  options = defaults.merge(opts)

  set_options(options)
  requires @site
end

Instance Attribute Details

#labelObject

Returns the value of attribute label.



8
9
10
# File 'lib/sambal-cle/data_objects/message.rb', line 8

def label
  @label
end

#messageObject

Returns the value of attribute message.



8
9
10
# File 'lib/sambal-cle/data_objects/message.rb', line 8

def message
  @message
end

#recipientsObject

Returns the value of attribute recipients.



8
9
10
# File 'lib/sambal-cle/data_objects/message.rb', line 8

def recipients
  @recipients
end

#send_ccObject

Returns the value of attribute send_cc.



8
9
10
# File 'lib/sambal-cle/data_objects/message.rb', line 8

def send_cc
  @send_cc
end

#siteObject

Returns the value of attribute site.



8
9
10
# File 'lib/sambal-cle/data_objects/message.rb', line 8

def site
  @site
end

#subjectObject

Returns the value of attribute subject.



8
9
10
# File 'lib/sambal-cle/data_objects/message.rb', line 8

def subject
  @subject
end

Instance Method Details

#createObject Also known as: compose



23
24
25
26
# File 'lib/sambal-cle/data_objects/message.rb', line 23

def create
  open_my_site_by_name @site
  messages
end