Class: ARB::Web::DOMCore
- Inherits:
-
Object
- Object
- ARB::Web::DOMCore
- Defined in:
- lib/arb_web.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#doc ⇒ Object
Returns the value of attribute doc.
-
#params ⇒ Object
Returns the value of attribute params.
-
#proxy_method ⇒ Object
Returns the value of attribute proxy_method.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(client, url, params, proxy_method, doc) ⇒ DOMCore
constructor
A new instance of DOMCore.
- #rebuild ⇒ Object
Constructor Details
#initialize(client, url, params, proxy_method, doc) ⇒ DOMCore
Returns a new instance of DOMCore.
7 8 9 10 11 |
# File 'lib/arb_web.rb', line 7 def initialize(client, url, params, proxy_method, doc) local_variables.each do |param| method("#{param}=")[binding.local_variable_get(param)] rescue 0 end end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
6 7 8 |
# File 'lib/arb_web.rb', line 6 def client @client end |
#doc ⇒ Object
Returns the value of attribute doc.
6 7 8 |
# File 'lib/arb_web.rb', line 6 def doc @doc end |
#params ⇒ Object
Returns the value of attribute params.
6 7 8 |
# File 'lib/arb_web.rb', line 6 def params @params end |
#proxy_method ⇒ Object
Returns the value of attribute proxy_method.
6 7 8 |
# File 'lib/arb_web.rb', line 6 def proxy_method @proxy_method end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/arb_web.rb', line 6 def url @url end |
Instance Method Details
#rebuild ⇒ Object
12 13 14 |
# File 'lib/arb_web.rb', line 12 def rebuild self.class.send proxy_method, client, url, **params end |