Class: Arachni::RPC::Client::Instance
- Defined in:
- lib/arachni/rpc/client/instance.rb
Overview
RPC client for remote instances spawned by a remote dispatcher
Defined Under Namespace
Classes: OptsMapper
Instance Attribute Summary collapse
-
#framework ⇒ Object
readonly
Returns the value of attribute framework.
-
#modules ⇒ Object
readonly
Returns the value of attribute modules.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
-
#plugins ⇒ Object
readonly
Returns the value of attribute plugins.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
-
#spider ⇒ Object
readonly
Returns the value of attribute spider.
Instance Method Summary collapse
-
#initialize(opts, url, token = nil) ⇒ Instance
constructor
A new instance of Instance.
- #url ⇒ Object
Constructor Details
#initialize(opts, url, token = nil) ⇒ Instance
Returns a new instance of Instance.
58 59 60 61 62 63 64 65 66 67 |
# File 'lib/arachni/rpc/client/instance.rb', line 58 def initialize( opts, url, token = nil ) @client = Base.new( opts, url, token ) @opts = OptsMapper.new( @client, 'opts' ) @framework = RemoteObjectMapper.new( @client, 'framework' ) @spider = RemoteObjectMapper.new( @client, 'spider' ) @modules = RemoteObjectMapper.new( @client, 'modules' ) @plugins = RemoteObjectMapper.new( @client, 'plugins' ) @service = RemoteObjectMapper.new( @client, 'service' ) end |
Instance Attribute Details
#framework ⇒ Object (readonly)
Returns the value of attribute framework.
33 34 35 |
# File 'lib/arachni/rpc/client/instance.rb', line 33 def framework @framework end |
#modules ⇒ Object (readonly)
Returns the value of attribute modules.
34 35 36 |
# File 'lib/arachni/rpc/client/instance.rb', line 34 def modules @modules end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
31 32 33 |
# File 'lib/arachni/rpc/client/instance.rb', line 31 def opts @opts end |
#plugins ⇒ Object (readonly)
Returns the value of attribute plugins.
35 36 37 |
# File 'lib/arachni/rpc/client/instance.rb', line 35 def plugins @plugins end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
36 37 38 |
# File 'lib/arachni/rpc/client/instance.rb', line 36 def service @service end |
#spider ⇒ Object (readonly)
Returns the value of attribute spider.
32 33 34 |
# File 'lib/arachni/rpc/client/instance.rb', line 32 def spider @spider end |
Instance Method Details
#url ⇒ Object
69 70 71 |
# File 'lib/arachni/rpc/client/instance.rb', line 69 def url @client.url end |