Class: ZTimeHeaderHour

Inherits:
ZTimeHeader show all
Defined in:
lib/z_time_header_hour.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.



8
9
10
11
12
13
# File 'lib/z_time_header_hour.rb', line 8

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

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