Class: Tengine::Job::Runtime::Signal::Reservation

Inherits:
Object
  • Object
show all
Defined in:
lib/tengine/job/runtime/signal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, event_type_name, options = {}) ⇒ Reservation

Returns a new instance of Reservation.



153
154
155
156
157
# File 'lib/tengine/job/runtime/signal.rb', line 153

def initialize(source, event_type_name, options = {})
  @source, @event_type_name = source, event_type_name
  @options  = options
  @options[:source_name] ||= source.name_as_resource
end

Instance Attribute Details

#event_type_nameObject (readonly)

Returns the value of attribute event_type_name.



152
153
154
# File 'lib/tengine/job/runtime/signal.rb', line 152

def event_type_name
  @event_type_name
end

#optionsObject (readonly)

Returns the value of attribute options.



152
153
154
# File 'lib/tengine/job/runtime/signal.rb', line 152

def options
  @options
end

#sourceObject (readonly)

Returns the value of attribute source.



152
153
154
# File 'lib/tengine/job/runtime/signal.rb', line 152

def source
  @source
end

Instance Method Details

#fire_argsObject



159
160
161
# File 'lib/tengine/job/runtime/signal.rb', line 159

def fire_args
  [@event_type_name, @options]
end