Class: Memoir::Filter
- Inherits:
-
Object
- Object
- Memoir::Filter
- Defined in:
- lib/memoir/filter.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#group_by ⇒ Object
Returns the value of attribute group_by.
-
#tagk ⇒ Object
Returns the value of attribute tagk.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, tagk, filter, group_by = false) ⇒ Filter
constructor
A new instance of Filter.
- #to_h ⇒ Object
Constructor Details
#initialize(type, tagk, filter, group_by = false) ⇒ Filter
Returns a new instance of Filter.
4 5 6 7 8 9 |
# File 'lib/memoir/filter.rb', line 4 def initialize(type, tagk, filter, group_by = false) @type = type @tagk = tagk @filter = filter @group_by = group_by end |
Instance Attribute Details
#filter ⇒ Object
Returns the value of attribute filter.
2 3 4 |
# File 'lib/memoir/filter.rb', line 2 def filter @filter end |
#group_by ⇒ Object
Returns the value of attribute group_by.
2 3 4 |
# File 'lib/memoir/filter.rb', line 2 def group_by @group_by end |
#tagk ⇒ Object
Returns the value of attribute tagk.
2 3 4 |
# File 'lib/memoir/filter.rb', line 2 def tagk @tagk end |
#type ⇒ Object
Returns the value of attribute type.
2 3 4 |
# File 'lib/memoir/filter.rb', line 2 def type @type end |
Instance Method Details
#to_h ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/memoir/filter.rb', line 11 def to_h { 'type' => type, 'tagk' => tagk, 'filter' => filter, 'groupBy' => group_by } end |