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

Inherits:
Object
  • Object
show all
Defined in:
lib/tengine/job/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.



67
68
69
70
71
# File 'lib/tengine/job/signal.rb', line 67

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.



66
67
68
# File 'lib/tengine/job/signal.rb', line 66

def event_type_name
  @event_type_name
end

#optionsObject (readonly)

Returns the value of attribute options.



66
67
68
# File 'lib/tengine/job/signal.rb', line 66

def options
  @options
end

#sourceObject (readonly)

Returns the value of attribute source.



66
67
68
# File 'lib/tengine/job/signal.rb', line 66

def source
  @source
end

Instance Method Details

#fire_argsObject



73
74
75
# File 'lib/tengine/job/signal.rb', line 73

def fire_args
  [@event_type_name, @options]
end