Class: BloggerPostObject

Inherits:
Object
  • Object
show all
Includes:
DataFactory, Foundry, Workflows
Defined in:
lib/sambal-cle/data_objects/blogger.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 = {}) ⇒ 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
  }
  options = defaults.merge(opts)
  
  set(options)
  requires @site
end

Instance Attribute Details

#abstractObject

Returns the value of attribute abstract.



7
8
9
# File 'lib/sambal-cle/data_objects/blogger.rb', line 7

def abstract
  @abstract
end

#accessObject

Returns the value of attribute access.



7
8
9
# File 'lib/sambal-cle/data_objects/blogger.rb', line 7

def access
  @access
end

#allow_commentsObject

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_onlyObject

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

#siteObject

Returns the value of attribute site.



7
8
9
# File 'lib/sambal-cle/data_objects/blogger.rb', line 7

def site
  @site
end

#textObject

Returns the value of attribute text.



7
8
9
# File 'lib/sambal-cle/data_objects/blogger.rb', line 7

def text
  @text
end

#titleObject

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

#createObject



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

#deleteObject



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

#viewObject



33
34
35
# File 'lib/sambal-cle/data_objects/blogger.rb', line 33

def view
  
end