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