Class: WebUnit::Frame

Inherits:
HtmlElem show all
Defined in:
lib/webunit/frame.rb

Instance Attribute Summary collapse

Attributes inherited from HtmlElem

#array, #attrs, #children, #data, #tag

Instance Method Summary collapse

Methods inherited from HtmlElem

#append, #extract, #find, #has?, #inspect, #print, #readlink, #search

Constructor Details

#initialize(ah) ⇒ Frame

Returns a new instance of Frame.



11
12
13
14
15
# File 'lib/webunit/frame.rb', line 11

def initialize( ah )
  super( 'frame', ah )
  @src = ah["src"]
  @name = ah["name"]
end

Instance Attribute Details

#nameObject (readonly)

— Frame#src

reader of 'src' attribute.

— Frame#name

reader of 'name' attribute.


24
25
26
# File 'lib/webunit/frame.rb', line 24

def name
  @name
end

#srcObject (readonly)

— Frame#src

reader of 'src' attribute.

— Frame#name

reader of 'name' attribute.


24
25
26
# File 'lib/webunit/frame.rb', line 24

def src
  @src
end

Instance Method Details

#readObject

— Frame#read

return a Response of getting of 'src' attribute.


31
32
33
# File 'lib/webunit/frame.rb', line 31

def read
  Response::new.init_http( @src, "GET" ) if @src != nil
end