Class: ZTimeHeaderDay

Inherits:
ZTimeHeader show all
Defined in:
lib/z_time_header_day.rb

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.



9
10
11
12
13
14
# File 'lib/z_time_header_day.rb', line 9

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

  rsrc.label = "Day"
  rsrc.title = rid
end