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.
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.
57 58 59 60 61 62 63 64 65 |
# File 'lib/arachni/rpc/client/instance.rb', line 57 def initialize( opts, url, token = nil ) @client = Base.new( opts, url, token ) @opts = OptsMapper.new( @client, 'opts' ) @framework = RemoteObjectMapper.new( @client, 'framework' ) @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.
32 33 34 |
# File 'lib/arachni/rpc/client/instance.rb', line 32 def framework @framework end |
#modules ⇒ Object (readonly)
Returns the value of attribute modules.
33 34 35 |
# File 'lib/arachni/rpc/client/instance.rb', line 33 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.
34 35 36 |
# File 'lib/arachni/rpc/client/instance.rb', line 34 def plugins @plugins end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
35 36 37 |
# File 'lib/arachni/rpc/client/instance.rb', line 35 def service @service end |
Instance Method Details
#url ⇒ Object
67 68 69 |
# File 'lib/arachni/rpc/client/instance.rb', line 67 def url @client.url end |