Class: Eaternet::Lives_1_0::Violation
- Inherits:
-
ValidatedObject
- Object
- ValidatedObject
- Eaternet::Lives_1_0::Violation
- Defined in:
- lib/eaternet/lives_1_0/violation.rb
Overview
Contains information about specific violations.
Instance Attribute Summary collapse
-
#business_id ⇒ String
Unique identifier of the business for which this violation applies.
-
#code ⇒ String
Code for the violation.
-
#date ⇒ Date
Date of violation.
-
#description ⇒ String
One line description of the violation.
Method Summary
Methods inherited from ValidatedObject
#check_validations!, #initialize
Constructor Details
This class inherits a constructor from Eaternet::ValidatedObject
Instance Attribute Details
#business_id ⇒ String
Unique identifier of the business for which this violation applies
15 16 17 |
# File 'lib/eaternet/lives_1_0/violation.rb', line 15 def business_id @business_id end |
#code ⇒ String
Code for the violation. It is recommended that this be based on the FDA Food Code. However, municipalities can decide to use pre-existing codes for this field.
35 36 37 |
# File 'lib/eaternet/lives_1_0/violation.rb', line 35 def code @code end |
#date ⇒ Date
Date of violation. This should correspond with the related inspection.
24 25 26 |
# File 'lib/eaternet/lives_1_0/violation.rb', line 24 def date @date end |
#description ⇒ String
One line description of the violation.
44 45 46 |
# File 'lib/eaternet/lives_1_0/violation.rb', line 44 def description @description end |