Class: Arachni::RPC::Client::Instance
- Defined in:
- lib/arachni/rpc/client/instance.rb
Overview
RPC client for remote instances spawned by a remote dispatcher
@author: Tasos “Zapotek” Laskos
<[email protected]>
<[email protected]>
@version: 0.1.3
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.
Constructor Details
#initialize(opts, url, token = nil) ⇒ Instance
Returns a new instance of Instance.
48 49 50 51 52 53 54 55 56 |
# File 'lib/arachni/rpc/client/instance.rb', line 48 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.
29 30 31 |
# File 'lib/arachni/rpc/client/instance.rb', line 29 def framework @framework end |
#modules ⇒ Object (readonly)
Returns the value of attribute modules.
30 31 32 |
# File 'lib/arachni/rpc/client/instance.rb', line 30 def modules @modules end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
28 29 30 |
# File 'lib/arachni/rpc/client/instance.rb', line 28 def opts @opts end |
#plugins ⇒ Object (readonly)
Returns the value of attribute plugins.
31 32 33 |
# File 'lib/arachni/rpc/client/instance.rb', line 31 def plugins @plugins end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
32 33 34 |
# File 'lib/arachni/rpc/client/instance.rb', line 32 def service @service end |