Class: WithFilters::Action
- Inherits:
-
Object
- Object
- WithFilters::Action
- Defined in:
- lib/with_filters/models/action.rb
Instance Attribute Summary (collapse)
-
- (Object) attrs
Returns the value of attribute attrs.
-
- (Object) type
Returns the value of attribute type.
Instance Method Summary (collapse)
-
- (Action) initialize(type, options = {})
constructor
A new instance of Action.
Constructor Details
- (Action) initialize(type, options = {})
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
- (Object) attrs
Returns the value of attribute attrs
3 4 5 |
# File 'lib/with_filters/models/action.rb', line 3 def attrs @attrs end |
- (Object) type
Returns the value of attribute type
3 4 5 |
# File 'lib/with_filters/models/action.rb', line 3 def type @type end |