Class: ZTimeHeader

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

Direct Known Subclasses

ZTimeHeaderDay, ZTimeHeaderHour

Class Method Summary collapse

Class Method Details

.decorate_resource(rsrc) ⇒ Object

(For ScheduledResource protocol) This method lets us set display attributes on the instance in a way specific to the resource-class and rid.

Parameters

  • rsrc - A ScheduledResource instance.



13
14
15
16
17
18
# File 'lib/z_time_header.rb', line 13

def self.decorate_resource( rsrc )
  rid = rsrc.sub_id

  rsrc.label = 'Time'   # Overridden, presumably
  rsrc.title = rid
end