Class: TextDocumentObject

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

Instance Attribute Details

#siteObject

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

#createObject



174
175
176
177
# File 'lib/sambal-cle/data_objects/resource.rb', line 174

def create
  open_my_site_by_name @site
  resources
end