Class: BlogEntryObject
- Inherits:
-
Object
- Object
- BlogEntryObject
- Includes:
- Foundry, StringFactory, Workflows
- Defined in:
- lib/sambal-cle/data_objects/blog.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#permissions ⇒ Object
Returns the value of attribute permissions.
-
#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 = {}) ⇒ BlogEntryObject
constructor
A new instance of BlogEntryObject.
- #view ⇒ Object
Methods included from Workflows
menu_link, #open_my_site_by_name, #reset
Constructor Details
#initialize(browser, opts = {}) ⇒ BlogEntryObject
Returns a new instance of BlogEntryObject.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/sambal-cle/data_objects/blog.rb', line 9 def initialize(browser, opts={}) @browser = browser defaults = { :title=>random_alphanums, :content=>random_alphanums, :permissions=>:publicly_viewable } = defaults.merge(opts) () requirements @site end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
7 8 9 |
# File 'lib/sambal-cle/data_objects/blog.rb', line 7 def content @content end |
#permissions ⇒ Object
Returns the value of attribute permissions.
7 8 9 |
# File 'lib/sambal-cle/data_objects/blog.rb', line 7 def @permissions end |
#site ⇒ Object
Returns the value of attribute site.
7 8 9 |
# File 'lib/sambal-cle/data_objects/blog.rb', line 7 def site @site end |
#title ⇒ Object
Returns the value of attribute title.
7 8 9 |
# File 'lib/sambal-cle/data_objects/blog.rb', line 7 def title @title end |
Instance Method Details
#create ⇒ Object
23 24 25 26 27 |
# File 'lib/sambal-cle/data_objects/blog.rb', line 23 def create open_my_site_by_name @site blogs # TODO: More needed here end |
#delete ⇒ Object
37 38 39 |
# File 'lib/sambal-cle/data_objects/blog.rb', line 37 def delete end |
#edit(opts = {}) ⇒ Object
29 30 31 |
# File 'lib/sambal-cle/data_objects/blog.rb', line 29 def edit opts={} end |
#view ⇒ Object
33 34 35 |
# File 'lib/sambal-cle/data_objects/blog.rb', line 33 def view end |