Class: Leeloo::Secret

Inherits:
Object
  • Object
show all
Defined in:
lib/leeloo/secret.rb

Direct Known Subclasses

GitSecretDecorator, LocalFileSystemSecret

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Secret

Returns a new instance of Secret.



10
11
12
# File 'lib/leeloo/secret.rb', line 10

def initialize name
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/leeloo/secret.rb', line 8

def name
  @name
end

Instance Method Details

#==(secret) ⇒ Object



14
15
16
# File 'lib/leeloo/secret.rb', line 14

def == secret
  @name == secret.name
end

#eraseObject



26
27
28
# File 'lib/leeloo/secret.rb', line 26

def erase
  # erase the secret
end

#footprintObject



30
31
32
# File 'lib/leeloo/secret.rb', line 30

def footprint
  # a footprint is a token proving the authenticity of a secret
end

#readObject



18
19
20
# File 'lib/leeloo/secret.rb', line 18

def read
  # returns the secret
end

#write(phrase) ⇒ Object



22
23
24
# File 'lib/leeloo/secret.rb', line 22

def write phrase
  # write the secret
end