Class: Distribot::PhaseHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/distribot/phase_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/distribot/phase_handler.rb', line 4

def name
  @name
end

#versionObject

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_sObject



11
12
13
# File 'lib/distribot/phase_handler.rb', line 11

def to_s
  name
end