Class: CitationListObject

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 = {}) ⇒ CitationListObject

Returns a new instance of CitationListObject.



188
189
190
191
192
193
194
195
# File 'lib/sambal-cle/data_objects/resource.rb', line 188

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.



186
187
188
# File 'lib/sambal-cle/data_objects/resource.rb', line 186

def site
  @site
end

Instance Method Details

#createObject



197
198
199
200
# File 'lib/sambal-cle/data_objects/resource.rb', line 197

def create
  open_my_site_by_name @site
  resources
end