Class: SearchScope::SortScope

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, label, order, reverse, include_model) ⇒ SortScope

Returns a new instance of SortScope.



5
6
7
# File 'lib/search_scope.rb', line 5

def initialize(name, label, order, reverse, include_model)
  @name, @label, @order, @reverse, @include_model = name, label, order, reverse, include_model
end

Instance Attribute Details

#include_modelObject (readonly)

Returns the value of attribute include_model.



4
5
6
# File 'lib/search_scope.rb', line 4

def include_model
  @include_model
end

#labelObject (readonly)

Returns the value of attribute label.



4
5
6
# File 'lib/search_scope.rb', line 4

def label
  @label
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/search_scope.rb', line 4

def name
  @name
end

#orderObject (readonly)

Returns the value of attribute order.



4
5
6
# File 'lib/search_scope.rb', line 4

def order
  @order
end

#reverseObject (readonly)

Returns the value of attribute reverse.



4
5
6
# File 'lib/search_scope.rb', line 4

def reverse
  @reverse
end