Class: Boatman::MonitoredFile

Inherits:
Object
  • Object
show all
Includes:
Copyable
Defined in:
lib/boatman/monitored_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Copyable

#copy, #move

Constructor Details

#initialize(file_path, match_data = nil) ⇒ MonitoredFile

Returns a new instance of MonitoredFile.



8
9
10
11
# File 'lib/boatman/monitored_file.rb', line 8

def initialize(file_path, match_data = nil)
  @path = file_path
  @match_data = match_data
end

Instance Attribute Details

#match_dataObject

Returns the value of attribute match_data.



6
7
8
# File 'lib/boatman/monitored_file.rb', line 6

def match_data
  @match_data
end

#pathObject

Returns the value of attribute path.



5
6
7
# File 'lib/boatman/monitored_file.rb', line 5

def path
  @path
end

Instance Method Details

#disable_checksum_verificationObject



13
14
15
# File 'lib/boatman/monitored_file.rb', line 13

def disable_checksum_verification
  @checksum_verification_disabled = true
end