Class: Reactor::Plans::CommonAttribute
- Inherits:
-
Object
- Object
- Reactor::Plans::CommonAttribute
- Includes:
- Prepared
- Defined in:
- lib/reactor/plans/common_attribute.rb
Direct Known Subclasses
CreateAttribute, DeleteAttribute, DeleteChannel, UpdateAttribute
Constant Summary collapse
- ALLOWED_PARAMS =
[:callback, :helpText, :maxSize, :minSize, :title, :values]
Instance Method Summary collapse
-
#initialize ⇒ CommonAttribute
constructor
A new instance of CommonAttribute.
- #migrate! ⇒ Object
- #set(key, value) ⇒ Object
Methods included from Prepared
Constructor Details
#initialize ⇒ CommonAttribute
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 |