Class: WebUnit::JSciriptOpenObject
- Defined in:
- lib/webunit/jscript.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Attributes inherited from HtmlElem
#array, #attrs, #children, #data, #name, #tag
Instance Method Summary collapse
-
#initialize(ah) ⇒ JSciriptOpenObject
constructor
A new instance of JSciriptOpenObject.
-
#read ⇒ Object
— JSciriptOpenObject#read return a Response of getting of ‘@url’.
Methods inherited from HtmlElem
#append, #extract, #find, #has?, #inspect, #print, #readlink, #search
Constructor Details
#initialize(ah) ⇒ JSciriptOpenObject
Returns a new instance of JSciriptOpenObject.
13 14 15 16 17 18 |
# File 'lib/webunit/jscript.rb', line 13 def initialize( ah ) super( 'open', ah ) @url = ah['url'] @file = ah['file'] @target = ah['target'] end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
11 12 13 |
# File 'lib/webunit/jscript.rb', line 11 def file @file end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
11 12 13 |
# File 'lib/webunit/jscript.rb', line 11 def target @target end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
11 12 13 |
# File 'lib/webunit/jscript.rb', line 11 def url @url end |