Class: Reactor::Plans::CommonGroup

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

Direct Known Subclasses

CreateGroup, DeleteGroup, UpdateGroup

Constant Summary collapse

ALLOWED_PARAMS =
[
  :users, 
  :global_permissions, 
  :real_name, 
  :owner,
]

Instance Method Summary collapse

Methods included from Prepared

#error, #separate_arguments

Constructor Details

#initializeCommonGroup

Returns a new instance of CommonGroup.



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

def initialize
  @params = {}
end

Instance Method Details

#migrate!Object



25
26
27
# File 'lib/reactor/plans/common_group.rb', line 25

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

#set(key, value) ⇒ Object



21
22
23
# File 'lib/reactor/plans/common_group.rb', line 21

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