Class: Reactor::Plans::CommonAttribute

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

Constant Summary collapse

ALLOWED_PARAMS =
[:callback, :helpText, :maxSize, :minSize,
:title, :values]

Instance Method Summary collapse

Methods included from Prepared

#error, #separate_arguments

Constructor Details

#initializeCommonAttribute

Returns a new instance of CommonAttribute.



10
11
12
# File 'lib/reactor/plans/common_attribute.rb', line 10

def initialize
  @params = {}
end

Instance Method Details

#migrate!Object



18
19
20
# File 'lib/reactor/plans/common_attribute.rb', line 18

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

#set(key, value) ⇒ Object



14
15
16
# File 'lib/reactor/plans/common_attribute.rb', line 14

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