Class: Yaqb::Presenter

Inherits:
Object
  • Object
show all
Defined in:
lib/yaqb/presenter.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.filter_attributesObject

Returns the value of attribute filter_attributes.



9
10
11
# File 'lib/yaqb/presenter.rb', line 9

def filter_attributes
  @filter_attributes
end

.sort_attributesObject

Returns the value of attribute sort_attributes.



9
10
11
# File 'lib/yaqb/presenter.rb', line 9

def sort_attributes
  @sort_attributes
end

Class Method Details

.filter_by(*args) ⇒ Object



15
16
17
# File 'lib/yaqb/presenter.rb', line 15

def filter_by(*args)
  @filter_attributes = args.map(&:to_s)
end

.sort_by(*args) ⇒ Object



11
12
13
# File 'lib/yaqb/presenter.rb', line 11

def sort_by(*args)
  @sort_attributes = args.map(&:to_s)
end