Class: Autoweb::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/autoweb/page.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent, name, css) ⇒ Element

Returns a new instance of Element.



45
46
47
48
49
# File 'lib/autoweb/page.rb', line 45

def initialize(parent,name, css)
  @parent = parent
  @name = name
  @css = css
end

Instance Attribute Details

#cssObject (readonly)

Returns the value of attribute css.



44
45
46
# File 'lib/autoweb/page.rb', line 44

def css
  @css
end

#nameObject (readonly)

Returns the value of attribute name.



44
45
46
# File 'lib/autoweb/page.rb', line 44

def name
  @name
end

#parentObject (readonly)

Returns the value of attribute parent.



44
45
46
# File 'lib/autoweb/page.rb', line 44

def parent
  @parent
end