Class: Pading::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



19
20
21
22
23
24
# File 'lib/pading/config.rb', line 19

def initialize
  @default_per_page = 25 # 每页默认多少数据
  @max_per_page = nil # 最大页数
  @page_method_name = :test_page # 使用功能名称
  @param_name = :test_page
end

Instance Attribute Details

#default_per_pageObject

Returns the value of attribute default_per_page.



17
18
19
# File 'lib/pading/config.rb', line 17

def default_per_page
  @default_per_page
end

#max_per_pageObject

Returns the value of attribute max_per_page.



17
18
19
# File 'lib/pading/config.rb', line 17

def max_per_page
  @max_per_page
end

#page_method_nameObject

Returns the value of attribute page_method_name.



17
18
19
# File 'lib/pading/config.rb', line 17

def page_method_name
  @page_method_name
end