Class: Exo::Pagination

Inherits:
Struct
  • Object
show all
Defined in:
app/helpers/exo/pagination_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth) ⇒ Object



17
18
19
# File 'app/helpers/exo/pagination_helper.rb', line 17

def method_missing meth
  nil
end

Instance Attribute Details

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



12
13
14
# File 'app/helpers/exo/pagination_helper.rb', line 12

def params
  @params
end

#scopeObject

Returns the value of attribute scope

Returns:

  • (Object)

    the current value of scope



12
13
14
# File 'app/helpers/exo/pagination_helper.rb', line 12

def scope
  @scope
end

Instance Method Details

#pagesObject



13
14
15
# File 'app/helpers/exo/pagination_helper.rb', line 13

def pages
  [1]
end