Class: FilePolice::Ticket
- Inherits:
-
Object
- Object
- FilePolice::Ticket
- Defined in:
- lib/file_police/ticket.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#violations ⇒ Object
Returns the value of attribute violations.
Instance Method Summary collapse
-
#initialize(file, violations) ⇒ Ticket
constructor
A new instance of Ticket.
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
#file ⇒ Object
Returns the value of attribute file.
3 4 5 |
# File 'lib/file_police/ticket.rb', line 3 def file @file end |
#violations ⇒ Object
Returns the value of attribute violations.
3 4 5 |
# File 'lib/file_police/ticket.rb', line 3 def violations @violations end |