Class: Githack::Leak
- Inherits:
-
Object
- Object
- Githack::Leak
- Defined in:
- lib/githack/leak.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#sha ⇒ Object
readonly
Returns the value of attribute sha.
Instance Method Summary collapse
-
#initialize(sha, file) ⇒ Leak
constructor
A new instance of Leak.
Constructor Details
#initialize(sha, file) ⇒ Leak
Returns a new instance of Leak.
5 6 7 8 9 |
# File 'lib/githack/leak.rb', line 5 def initialize(sha, file) @sha = sha @file = file @content = File.read(file) end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
3 4 5 |
# File 'lib/githack/leak.rb', line 3 def content @content end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
3 4 5 |
# File 'lib/githack/leak.rb', line 3 def file @file end |
#sha ⇒ Object (readonly)
Returns the value of attribute sha.
3 4 5 |
# File 'lib/githack/leak.rb', line 3 def sha @sha end |