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 =
%i(
  users
  global_permissions
  real_name
  owner
).freeze

Instance Method Summary collapse

Methods included from Prepared

#error, #separate_arguments

Constructor Details

#initializeCommonGroup

Returns a new instance of CommonGroup.



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

def initialize
  @params = {}
end

Instance Method Details

#migrate!Object



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

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

#set(key, value) ⇒ Object



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

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