Class: SafeNet::Client
- Inherits:
-
Object
- Object
- SafeNet::Client
- Defined in:
- lib/safenet.rb
Instance Attribute Summary collapse
-
#ad ⇒ Object
readonly
Returns the value of attribute ad.
-
#app_info ⇒ Object
readonly
Returns the value of attribute app_info.
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
-
#cipher ⇒ Object
readonly
Returns the value of attribute cipher.
-
#data_id ⇒ Object
readonly
Returns the value of attribute data_id.
-
#dns ⇒ Object
readonly
Returns the value of attribute dns.
-
#immutable ⇒ Object
readonly
Returns the value of attribute immutable.
-
#key_helper ⇒ Object
readonly
Returns the value of attribute key_helper.
-
#nfs ⇒ Object
readonly
Returns the value of attribute nfs.
-
#sd ⇒ Object
readonly
Returns the value of attribute sd.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #set_app_info(options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/safenet.rb', line 15 def initialize( = {}) @app_info = defaults() set_app_info() if .any? @key_helper = SafeNet::KeyHelper.new(self) @auth = SafeNet::Auth.new(self) @nfs = SafeNet::NFS.new(self) @dns = SafeNet::DNS.new(self) @sd = SafeNet::SD.new(self) @ad = SafeNet::AD.new(self) @immutable = SafeNet::Immutable.new(self) @cipher = SafeNet::Cipher.new(self) @data_id = SafeNet::DataId.new(self) end |
Instance Attribute Details
#ad ⇒ Object (readonly)
Returns the value of attribute ad.
13 14 15 |
# File 'lib/safenet.rb', line 13 def ad @ad end |
#app_info ⇒ Object (readonly)
Returns the value of attribute app_info.
13 14 15 |
# File 'lib/safenet.rb', line 13 def app_info @app_info end |
#auth ⇒ Object (readonly)
Returns the value of attribute auth.
13 14 15 |
# File 'lib/safenet.rb', line 13 def auth @auth end |
#cipher ⇒ Object (readonly)
Returns the value of attribute cipher.
13 14 15 |
# File 'lib/safenet.rb', line 13 def cipher @cipher end |
#data_id ⇒ Object (readonly)
Returns the value of attribute data_id.
13 14 15 |
# File 'lib/safenet.rb', line 13 def data_id @data_id end |
#dns ⇒ Object (readonly)
Returns the value of attribute dns.
13 14 15 |
# File 'lib/safenet.rb', line 13 def dns @dns end |
#immutable ⇒ Object (readonly)
Returns the value of attribute immutable.
13 14 15 |
# File 'lib/safenet.rb', line 13 def immutable @immutable end |
#key_helper ⇒ Object (readonly)
Returns the value of attribute key_helper.
13 14 15 |
# File 'lib/safenet.rb', line 13 def key_helper @key_helper end |
#nfs ⇒ Object (readonly)
Returns the value of attribute nfs.
13 14 15 |
# File 'lib/safenet.rb', line 13 def nfs @nfs end |
#sd ⇒ Object (readonly)
Returns the value of attribute sd.
13 14 15 |
# File 'lib/safenet.rb', line 13 def sd @sd end |
Instance Method Details
#set_app_info(options = {}) ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/safenet.rb', line 29 def set_app_info( = {}) @app_info[:permissions] = [:permissions] if .has_key?(:permissions) @app_info[:name] = [:name] if .has_key?(:name) @app_info[:version] = [:version] if .has_key?(:version) @app_info[:vendor] = [:vendor] if .has_key?(:vendor) @app_info[:id] = [:id] if .has_key?(:id) @app_info[:launcher_server] = [:server] if .has_key?(:server) @app_info[:conf_path] = [:conf_file] if .has_key?(:conf_file) end |