Class: MessageObject
- Inherits:
-
Object
- Object
- MessageObject
- Includes:
- DataFactory, Foundry, StringFactory, Workflows
- Defined in:
- lib/sambal-cle/data_objects/message.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#message ⇒ Object
Returns the value of attribute message.
-
#recipients ⇒ Object
Returns the value of attribute recipients.
-
#send_cc ⇒ Object
Returns the value of attribute send_cc.
-
#site ⇒ Object
Returns the value of attribute site.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
- #create ⇒ Object (also: #compose)
-
#initialize(browser, opts = {}) ⇒ MessageObject
constructor
A new instance of MessageObject.
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"] } = defaults.merge(opts) () requires @site end |
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label.
8 9 10 |
# File 'lib/sambal-cle/data_objects/message.rb', line 8 def label @label end |
#message ⇒ Object
Returns the value of attribute message.
8 9 10 |
# File 'lib/sambal-cle/data_objects/message.rb', line 8 def @message end |
#recipients ⇒ Object
Returns the value of attribute recipients.
8 9 10 |
# File 'lib/sambal-cle/data_objects/message.rb', line 8 def recipients @recipients end |
#send_cc ⇒ Object
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 |
#site ⇒ Object
Returns the value of attribute site.
8 9 10 |
# File 'lib/sambal-cle/data_objects/message.rb', line 8 def site @site end |
#subject ⇒ Object
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
#create ⇒ Object 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 end |