Class: Distribot::PhaseHandler
- Inherits:
-
Object
- Object
- Distribot::PhaseHandler
- Defined in:
- lib/distribot/phase_handler.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ PhaseHandler
constructor
A new instance of PhaseHandler.
- #to_s ⇒ Object
Constructor Details
#initialize(attrs = {}) ⇒ PhaseHandler
Returns a new instance of PhaseHandler.
5 6 7 8 9 |
# File 'lib/distribot/phase_handler.rb', line 5 def initialize(attrs = {}) attrs.each do |key, val| public_send("#{key}=", val) end end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/distribot/phase_handler.rb', line 4 def name @name end |
#version ⇒ Object
Returns the value of attribute version.
4 5 6 |
# File 'lib/distribot/phase_handler.rb', line 4 def version @version end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/distribot/phase_handler.rb', line 11 def to_s name end |