Class: FilePolice::Ticket

Inherits:
Object
  • Object
show all
Defined in:
lib/file_police/ticket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, violations) ⇒ Ticket

Returns a new instance of Ticket.



5
6
7
8
# File 'lib/file_police/ticket.rb', line 5

def initialize file, violations
  self.file = file
  self.violations = violations
end

Instance Attribute Details

#fileObject

Returns the value of attribute file.



3
4
5
# File 'lib/file_police/ticket.rb', line 3

def file
  @file
end

#violationsObject

Returns the value of attribute violations.



3
4
5
# File 'lib/file_police/ticket.rb', line 3

def violations
  @violations
end