Module: Tempo
- Defined in:
- lib/tempo/models/log.rb,
lib/tempo/version.rb,
lib/tempo/exceptions.rb,
lib/tempo/views/base.rb,
lib/tempo/models/base.rb,
lib/tempo/models/project.rb,
lib/tempo/views/reporter.rb,
lib/tempo/controllers/base.rb,
lib/tempo/models/composite.rb,
lib/tempo/views/report_view.rb,
lib/tempo/models/time_record.rb,
lib/tempo/views/arrange_view.rb,
lib/tempo/views/projects_view.rb,
lib/tempo/views/formatters/base.rb,
lib/tempo/views/time_record_view.rb,
lib/tempo/views/view_records/log.rb,
lib/tempo/views/formatters/screen.rb,
lib/tempo/views/view_records/base.rb,
lib/tempo/controllers/end_controller.rb,
lib/tempo/views/view_records/project.rb,
lib/tempo/controllers/start_controller.rb,
lib/tempo/views/view_records/composite.rb,
lib/tempo/controllers/report_controller.rb,
lib/tempo/controllers/update_controller.rb,
lib/tempo/controllers/arrange_controller.rb,
lib/tempo/controllers/records_controller.rb,
lib/tempo/views/view_records/time_record.rb,
lib/tempo/controllers/checkout_controller.rb,
lib/tempo/controllers/projects_controller.rb
Overview
ViewRecords are simplified models, with additional display information, used in views.
Each viewrecord has a :type, which can be queried in the view to know what type of record it is managing.
They also each have a format method, which accept a block, and also includes a default block which returns a basic formatted string.
ViewRecords can be nested, for instance the Time ViewRecords contain a Duration ViewRecord.
View records should add themselves to the Reporter on init, with the exception of partials (such as duration), which are managed within other view records
They have no logic, and so it is up to the creation method to make sure they are a correct copy of the information they are representing.
Defined Under Namespace
Modules: Controllers, Model, Views Classes: DifferentDaysError, EndTimeError, InvalidViewRecordError, TimeConflictError
Constant Summary collapse
- VERSION =
'0.2.4'