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.
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/safenet.rb', line 19 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.
17 18 19 |
# File 'lib/safenet.rb', line 17 def ad @ad end |
#app_info ⇒ Object (readonly)
Returns the value of attribute app_info.
17 18 19 |
# File 'lib/safenet.rb', line 17 def app_info @app_info end |
#auth ⇒ Object (readonly)
Returns the value of attribute auth.
17 18 19 |
# File 'lib/safenet.rb', line 17 def auth @auth end |
#cipher ⇒ Object (readonly)
Returns the value of attribute cipher.
17 18 19 |
# File 'lib/safenet.rb', line 17 def cipher @cipher end |
#data_id ⇒ Object (readonly)
Returns the value of attribute data_id.
17 18 19 |
# File 'lib/safenet.rb', line 17 def data_id @data_id end |
#dns ⇒ Object (readonly)
Returns the value of attribute dns.
17 18 19 |
# File 'lib/safenet.rb', line 17 def dns @dns end |
#immutable ⇒ Object (readonly)
Returns the value of attribute immutable.
17 18 19 |
# File 'lib/safenet.rb', line 17 def immutable @immutable end |
#key_helper ⇒ Object (readonly)
Returns the value of attribute key_helper.
17 18 19 |
# File 'lib/safenet.rb', line 17 def key_helper @key_helper end |
#nfs ⇒ Object (readonly)
Returns the value of attribute nfs.
17 18 19 |
# File 'lib/safenet.rb', line 17 def nfs @nfs end |
#sd ⇒ Object (readonly)
Returns the value of attribute sd.
17 18 19 |
# File 'lib/safenet.rb', line 17 def sd @sd end |
Instance Method Details
#set_app_info(options = {}) ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/safenet.rb', line 33 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 |