Class: Githack::Leak

Inherits:
Object
  • Object
show all
Defined in:
lib/githack/leak.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



3
4
5
# File 'lib/githack/leak.rb', line 3

def content
  @content
end

#fileObject (readonly)

Returns the value of attribute file.



3
4
5
# File 'lib/githack/leak.rb', line 3

def file
  @file
end

#shaObject (readonly)

Returns the value of attribute sha.



3
4
5
# File 'lib/githack/leak.rb', line 3

def sha
  @sha
end