Class: ScheduledResource::ResourceUseBlock

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

Overview

ResourceUseBlock

Represents the USE of a resource for an interval of time.

Resource X UseModel X [startime..endtime];
 |         | Example -- tv:
 |         |   Program   [ belongs_to :channel    ]
 |         |   Timelabel [ belongs_to :timeheader ]
 |
 | Example -- tv: Channel, TimeHeader

Instance Method Summary collapse

Constructor Details

#initialize(rsrc, blk) ⇒ ResourceUseBlock

Returns a new instance of ResourceUseBlock.



26
27
28
29
# File 'lib/scheduled_resource/resource_use_block.rb', line 26

def initialize(rsrc, blk)
  @rsrc = rsrc
  @blk = blk
end