Class: Travis::Yaml::SecureString
- Inherits:
-
Object
- Object
- Travis::Yaml::SecureString
- Defined in:
- lib/travis/yaml/secure_string.rb
Instance Attribute Summary collapse
-
#decrypted_string ⇒ Object
Returns the value of attribute decrypted_string.
-
#encrypted_string ⇒ Object
Returns the value of attribute encrypted_string.
Instance Method Summary collapse
-
#initialize(string, encrypted = true) ⇒ SecureString
constructor
A new instance of SecureString.
Constructor Details
#initialize(string, encrypted = true) ⇒ SecureString
Returns a new instance of SecureString.
4 5 6 7 8 9 10 |
# File 'lib/travis/yaml/secure_string.rb', line 4 def initialize(string, encrypted = true) if encrypted @encryped_string = string else @decrypted_string = string end end |
Instance Attribute Details
#decrypted_string ⇒ Object
Returns the value of attribute decrypted_string.
3 4 5 |
# File 'lib/travis/yaml/secure_string.rb', line 3 def decrypted_string @decrypted_string end |
#encrypted_string ⇒ Object
Returns the value of attribute encrypted_string.
3 4 5 |
# File 'lib/travis/yaml/secure_string.rb', line 3 def encrypted_string @encrypted_string end |