Class: ForumObject
- Inherits:
-
Object
- Object
- ForumObject
- Includes:
- PageHelper, Utilities, Workflows
- Defined in:
- lib/sakai-cle-test-api/data_objects/forum.rb
Overview
Note that this class is for icon-sakai-forums. NOT jforums.
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#short_description ⇒ Object
Returns the value of attribute short_description.
-
#site ⇒ Object
Returns the value of attribute site.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #create ⇒ Object
- #delete ⇒ Object
- #edit(opts = {}) ⇒ Object
-
#initialize(browser, opts = {}) ⇒ ForumObject
constructor
A new instance of ForumObject.
- #view ⇒ Object
Methods included from Workflows
menu_link, #open_my_site_by_name
Methods included from Utilities
#current_hour, #current_month, #current_year, #get_filename, #in_15_minutes, #last_hour, #last_month, #last_year, #make, #make_date, #next_hour, #next_month, #next_year, #on_page, #random_alphanums, #random_alphanums_plus, #random_email, #random_high_ascii, #random_letters, #random_multiline, #random_nicelink, #random_string, #random_xss_string, #tomorrow, #yesterday
Methods included from PageHelper
#make, #on, #visit, #wait_until
Constructor Details
#initialize(browser, opts = {}) ⇒ ForumObject
Returns a new instance of ForumObject.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/sakai-cle-test-api/data_objects/forum.rb', line 10 def initialize(browser, opts={}) @browser = browser defaults = { :title=>random_alphanums } = defaults.merge(opts) @site=[:site] @title=[:title] @short_description=[:short_description] @description=[:description] raise "You need to specify a site for your Forum" if @site==nil end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
8 9 10 |
# File 'lib/sakai-cle-test-api/data_objects/forum.rb', line 8 def description @description end |
#short_description ⇒ Object
Returns the value of attribute short_description.
8 9 10 |
# File 'lib/sakai-cle-test-api/data_objects/forum.rb', line 8 def short_description @short_description end |
#site ⇒ Object
Returns the value of attribute site.
8 9 10 |
# File 'lib/sakai-cle-test-api/data_objects/forum.rb', line 8 def site @site end |
#title ⇒ Object
Returns the value of attribute title.
8 9 10 |
# File 'lib/sakai-cle-test-api/data_objects/forum.rb', line 8 def title @title end |
Instance Method Details
#create ⇒ Object
25 26 27 |
# File 'lib/sakai-cle-test-api/data_objects/forum.rb', line 25 def create end |
#delete ⇒ Object
37 38 39 |
# File 'lib/sakai-cle-test-api/data_objects/forum.rb', line 37 def delete end |
#edit(opts = {}) ⇒ Object
29 30 31 |
# File 'lib/sakai-cle-test-api/data_objects/forum.rb', line 29 def edit opts={} end |
#view ⇒ Object
33 34 35 |
# File 'lib/sakai-cle-test-api/data_objects/forum.rb', line 33 def view end |