Class: Reactor::Plans::CommonChannel

Inherits:
Object
  • Object
show all
Includes:
Prepared
Defined in:
lib/reactor/plans/common_channel.rb

Direct Known Subclasses

CreateChannel

Constant Summary collapse

ALLOWED_PARAMS =
[:title]

Instance Method Summary collapse

Methods included from Prepared

#error, #separate_arguments

Constructor Details

#initializeCommonChannel

Returns a new instance of CommonChannel.



9
10
11
# File 'lib/reactor/plans/common_channel.rb', line 9

def initialize
  @params = {}
end

Instance Method Details

#migrate!Object



17
18
19
# File 'lib/reactor/plans/common_channel.rb', line 17

def migrate!
  raise "#{self.class.name} did not implement migrate!"
end

#set(key, value) ⇒ Object



13
14
15
# File 'lib/reactor/plans/common_channel.rb', line 13

def set(key,value)
  @params[key.to_sym] = value
end