Class: Reactor::Plans::CommonChannel

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

Direct Known Subclasses

CreateChannel, DeleteChannel

Constant Summary collapse

ALLOWED_PARAMS =
[:title].freeze

Instance Method Summary collapse

Methods included from Prepared

#error, #separate_arguments

Constructor Details

#initializeCommonChannel

Returns a new instance of CommonChannel.



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

def initialize
  @params = {}
end

Instance Method Details

#migrate!Object



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

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

#set(key, value) ⇒ Object



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

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