Class: Travis::Yaml::SecureString

Inherits:
Object
  • Object
show all
Defined in:
lib/travis/yaml/secure_string.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_stringObject

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_stringObject

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