Class: CellObject
- Inherits:
-
Object
- Object
- CellObject
- Includes:
- DataFactory, Foundry, StringFactory, Workflows
- Defined in:
- lib/sambal-cle/data_objects/matrix.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#examples ⇒ Object
Returns the value of attribute examples.
-
#id ⇒ Object
Returns the value of attribute id.
-
#instructions ⇒ Object
Returns the value of attribute instructions.
-
#matrix ⇒ Object
Returns the value of attribute matrix.
-
#rationale ⇒ Object
Returns the value of attribute rationale.
-
#row ⇒ Object
Returns the value of attribute row.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #create ⇒ Object
- #delete ⇒ Object
- #edit(opts = {}) ⇒ Object
-
#initialize(browser, opts = {}) ⇒ CellObject
constructor
A new instance of CellObject.
- #view ⇒ Object
Methods included from Workflows
menu_link, #open_my_site_by_name, #reset
Constructor Details
#initialize(browser, opts = {}) ⇒ CellObject
Returns a new instance of CellObject.
108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/sambal-cle/data_objects/matrix.rb', line 108 def initialize(browser, opts={}) @browser = browser defaults = { :title=>random_alphanums, :instructions=>random_alphanums, :rationale=>random_alphanums, :examples=>random_alphanums } = defaults.merge(opts) () requires @matrix, @row, @column end |
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
106 107 108 |
# File 'lib/sambal-cle/data_objects/matrix.rb', line 106 def column @column end |
#examples ⇒ Object
Returns the value of attribute examples.
106 107 108 |
# File 'lib/sambal-cle/data_objects/matrix.rb', line 106 def examples @examples end |
#id ⇒ Object
Returns the value of attribute id.
106 107 108 |
# File 'lib/sambal-cle/data_objects/matrix.rb', line 106 def id @id end |
#instructions ⇒ Object
Returns the value of attribute instructions.
106 107 108 |
# File 'lib/sambal-cle/data_objects/matrix.rb', line 106 def instructions @instructions end |
#matrix ⇒ Object
Returns the value of attribute matrix.
106 107 108 |
# File 'lib/sambal-cle/data_objects/matrix.rb', line 106 def matrix @matrix end |
#rationale ⇒ Object
Returns the value of attribute rationale.
106 107 108 |
# File 'lib/sambal-cle/data_objects/matrix.rb', line 106 def rationale @rationale end |
#row ⇒ Object
Returns the value of attribute row.
106 107 108 |
# File 'lib/sambal-cle/data_objects/matrix.rb', line 106 def row @row end |
#title ⇒ Object
Returns the value of attribute title.
106 107 108 |
# File 'lib/sambal-cle/data_objects/matrix.rb', line 106 def title @title end |
Instance Method Details
#create ⇒ Object
123 124 125 |
# File 'lib/sambal-cle/data_objects/matrix.rb', line 123 def create #:id=>cell.html[/(?<=hrefViewCell\(\').+(?=')/] end |
#delete ⇒ Object
136 137 138 |
# File 'lib/sambal-cle/data_objects/matrix.rb', line 136 def delete end |
#edit(opts = {}) ⇒ Object
127 128 129 130 |
# File 'lib/sambal-cle/data_objects/matrix.rb', line 127 def edit opts={} (opts) end |
#view ⇒ Object
132 133 134 |
# File 'lib/sambal-cle/data_objects/matrix.rb', line 132 def view end |