Class: Tengine::Job::Runtime::Signal::Reservation
- Inherits:
-
Object
- Object
- Tengine::Job::Runtime::Signal::Reservation
- Defined in:
- lib/tengine/job/runtime/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.
153 154 155 156 157 |
# File 'lib/tengine/job/runtime/signal.rb', line 153 def initialize(source, event_type_name, = {}) @source, @event_type_name = source, event_type_name = [:source_name] ||= source.name_as_resource end |
Instance Attribute Details
#event_type_name ⇒ Object (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 |
#options ⇒ Object (readonly)
Returns the value of attribute options.
152 153 154 |
# File 'lib/tengine/job/runtime/signal.rb', line 152 def end |
#source ⇒ Object (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_args ⇒ Object
159 160 161 |
# File 'lib/tengine/job/runtime/signal.rb', line 159 def fire_args [@event_type_name, ] end |