Class: TextDocumentObject
- Inherits:
-
Object
- Object
- TextDocumentObject
- Includes:
- DataFactory, Foundry, Workflows
- Defined in:
- lib/sambal-cle/data_objects/resource.rb
Instance Attribute Summary collapse
-
#site ⇒ Object
Returns the value of attribute site.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(browser, opts = {}) ⇒ TextDocumentObject
constructor
A new instance of TextDocumentObject.
Methods included from Workflows
menu_link, #open_my_site_by_name, #reset
Constructor Details
#initialize(browser, opts = {}) ⇒ TextDocumentObject
Returns a new instance of TextDocumentObject.
165 166 167 168 169 170 171 172 |
# File 'lib/sambal-cle/data_objects/resource.rb', line 165 def initialize(browser, opts={}) @browser = browser defaults = {} = defaults.merge(opts) () requires @site end |
Instance Attribute Details
#site ⇒ Object
Returns the value of attribute site.
163 164 165 |
# File 'lib/sambal-cle/data_objects/resource.rb', line 163 def site @site end |
Instance Method Details
#create ⇒ Object
174 175 176 177 |
# File 'lib/sambal-cle/data_objects/resource.rb', line 174 def create open_my_site_by_name @site resources end |