Class: VagrantPlugins::SecuredCloud::Configuration::AuthenticationInfo
- Inherits:
-
Object
- Object
- VagrantPlugins::SecuredCloud::Configuration::AuthenticationInfo
- Defined in:
- lib/secured-cloud-vagrant/configs/authentication_info.rb
Instance Attribute Summary collapse
-
#applicationKey ⇒ Object
Returns the value of attribute applicationKey.
-
#sharedSecret ⇒ Object
Returns the value of attribute sharedSecret.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ AuthenticationInfo
constructor
A new instance of AuthenticationInfo.
- #merge(other) ⇒ Object
- #validate(machine) ⇒ Object
Constructor Details
#initialize ⇒ AuthenticationInfo
Returns a new instance of AuthenticationInfo.
13 14 15 16 17 |
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 13 def initialize @url = UNSET_VALUE @applicationKey = UNSET_VALUE @sharedSecret = UNSET_VALUE end |
Instance Attribute Details
#applicationKey ⇒ Object
Returns the value of attribute applicationKey.
10 11 12 |
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 10 def applicationKey @applicationKey end |
#sharedSecret ⇒ Object
Returns the value of attribute sharedSecret.
11 12 13 |
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 11 def sharedSecret @sharedSecret end |
#url ⇒ Object
Returns the value of attribute url.
9 10 11 |
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 9 def url @url end |
Instance Method Details
#finalize! ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 36 def finalize! @url = nil if(@url == UNSET_VALUE) @applicationKey = nil if(@applicationKey == UNSET_VALUE) @sharedSecret = nil if(@sharedSecret == UNSET_VALUE) end |
#merge(other) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 23 def merge(other) super.tap do |result| result.url = (other.url == UNSET_VALUE) ? @url : other.url result.applicationKey = (other.applicationKey == UNSET_VALUE) ? @url : other.applicationKey result.sharedSecret = (other.sharedSecret == UNSET_VALUE) ? @sharedSecret : other.sharedSecret end end |
#validate(machine) ⇒ Object
19 20 21 |
# File 'lib/secured-cloud-vagrant/configs/authentication_info.rb', line 19 def validate(machine) end |