Class: Tengine::Job::Signal::Reservation
- Inherits:
-
Object
- Object
- Tengine::Job::Signal::Reservation
- Defined in:
- lib/tengine/job/signal.rb
Instance Attribute Summary collapse
-
#event_type_name ⇒ Object
readonly
Returns the value of attribute event_type_name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
- #fire_args ⇒ Object
-
#initialize(source, event_type_name, options = {}) ⇒ Reservation
constructor
A new instance of Reservation.
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, = {}) @source, @event_type_name = source, event_type_name @options = @options[:source_name] ||= source.name_as_resource end |
Instance Attribute Details
#event_type_name ⇒ Object (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 |
#options ⇒ Object (readonly)
Returns the value of attribute options.
66 67 68 |
# File 'lib/tengine/job/signal.rb', line 66 def @options end |
#source ⇒ Object (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_args ⇒ Object
73 74 75 |
# File 'lib/tengine/job/signal.rb', line 73 def fire_args [@event_type_name, @options] end |