Created
November 3, 2012 14:10
-
-
Save jnwheeler44/4007478 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Result | |
| def active_report | |
| active_reports.first | |
| end | |
| def get_date_of_report | |
| if active_report | |
| active_report.date_reported.strftime('%m/%d/%Y ') | |
| else | |
| 'No Report' | |
| end | |
| end | |
| def get_datetime_result_date_of_report | |
| if active_report | |
| active_report.date_reported | |
| else | |
| 'No Report' | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment