Class: WithFilters::Action
- Inherits:
-
Object
- Object
- WithFilters::Action
- Defined in:
- lib/with_filters/models/action.rb
Instance Attribute Summary collapse
-
#attrs ⇒ Object
Returns the value of attribute attrs.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, options = {}) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(type, options = {}) ⇒ Action
Returns a new instance of Action.
5 6 7 8 9 10 11 12 |
# File 'lib/with_filters/models/action.rb', line 5 def initialize(type, = {}) @type = type [:type] = @type [:value] = .delete(:label) if [:label] @attrs = end |
Instance Attribute Details
#attrs ⇒ Object
Returns the value of attribute attrs.
3 4 5 |
# File 'lib/with_filters/models/action.rb', line 3 def attrs @attrs end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/with_filters/models/action.rb', line 3 def type @type end |