Class: Web::Unit::Frame

Inherits:
HtmlElem show all
Defined in:
lib/web/unit/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.



12
13
14
15
16
# File 'lib/web/unit/frame.rb', line 12

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.


25
26
27
# File 'lib/web/unit/frame.rb', line 25

def name
  @name
end

#srcObject (readonly)

— Frame#src

reader of 'src' attribute.

— Frame#name

reader of 'name' attribute.


25
26
27
# File 'lib/web/unit/frame.rb', line 25

def src
  @src
end

Instance Method Details

#readObject

— Frame#read

return a Response of getting of 'src' attribute.


32
33
34
# File 'lib/web/unit/frame.rb', line 32

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