Class: ARB::Web::DOMCore

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject

Returns the value of attribute client.



6
7
8
# File 'lib/arb_web.rb', line 6

def client
  @client
end

#docObject

Returns the value of attribute doc.



6
7
8
# File 'lib/arb_web.rb', line 6

def doc
  @doc
end

#paramsObject

Returns the value of attribute params.



6
7
8
# File 'lib/arb_web.rb', line 6

def params
  @params
end

#proxy_methodObject

Returns the value of attribute proxy_method.



6
7
8
# File 'lib/arb_web.rb', line 6

def proxy_method
  @proxy_method
end

#urlObject

Returns the value of attribute url.



6
7
8
# File 'lib/arb_web.rb', line 6

def url
  @url
end

Instance Method Details

#rebuildObject



12
13
14
# File 'lib/arb_web.rb', line 12

def rebuild
  self.class.send proxy_method, client, url, **params
end