Class: Nvoi::Configuration::Result::Init
- Inherits:
-
Object
- Object
- Nvoi::Configuration::Result::Init
- Defined in:
- lib/nvoi/configuration/result.rb
Overview
Result for init operations (includes encryption artifacts)
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#error_type ⇒ Object
readonly
Returns the value of attribute error_type.
-
#master_key ⇒ Object
readonly
Returns the value of attribute master_key.
-
#ssh_public_key ⇒ Object
readonly
Returns the value of attribute ssh_public_key.
Instance Method Summary collapse
- #failure? ⇒ Boolean
-
#initialize(config: nil, master_key: nil, ssh_public_key: nil, error_type: nil, error_message: nil) ⇒ Init
constructor
A new instance of Init.
- #success? ⇒ Boolean
Constructor Details
#initialize(config: nil, master_key: nil, ssh_public_key: nil, error_type: nil, error_message: nil) ⇒ Init
Returns a new instance of Init.
30 31 32 33 34 35 36 |
# File 'lib/nvoi/configuration/result.rb', line 30 def initialize(config: nil, master_key: nil, ssh_public_key: nil, error_type: nil, error_message: nil) @config = config @master_key = master_key @ssh_public_key = ssh_public_key @error_type = error_type @error_message = end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
28 29 30 |
# File 'lib/nvoi/configuration/result.rb', line 28 def config @config end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
28 29 30 |
# File 'lib/nvoi/configuration/result.rb', line 28 def @error_message end |
#error_type ⇒ Object (readonly)
Returns the value of attribute error_type.
28 29 30 |
# File 'lib/nvoi/configuration/result.rb', line 28 def error_type @error_type end |
#master_key ⇒ Object (readonly)
Returns the value of attribute master_key.
28 29 30 |
# File 'lib/nvoi/configuration/result.rb', line 28 def master_key @master_key end |
#ssh_public_key ⇒ Object (readonly)
Returns the value of attribute ssh_public_key.
28 29 30 |
# File 'lib/nvoi/configuration/result.rb', line 28 def ssh_public_key @ssh_public_key end |
Instance Method Details
#failure? ⇒ Boolean
39 |
# File 'lib/nvoi/configuration/result.rb', line 39 def failure? = !success? |
#success? ⇒ Boolean
38 |
# File 'lib/nvoi/configuration/result.rb', line 38 def success? = @error_type.nil? |