Class: Jinrai::Config
- Inherits:
-
Object
- Object
- Jinrai::Config
- Defined in:
- lib/jinrai/config.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#default_attributes_from_cursor ⇒ Object
Returns the value of attribute default_attributes_from_cursor.
-
#default_cursor_format ⇒ Object
Returns the value of attribute default_cursor_format.
-
#default_cursor_per ⇒ Object
Returns the value of attribute default_cursor_per.
-
#default_cursor_sort_order ⇒ Object
Returns the value of attribute default_cursor_sort_order.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
20 21 22 23 24 25 |
# File 'lib/jinrai/config.rb', line 20 def initialize @default_cursor_per = 20 @default_cursor_format = %i[created_at id] @default_cursor_sort_order = :desc @default_attributes_from_cursor = Proc.new { |decoded_cursor| decoded_cursor } end |
Instance Attribute Details
#default_attributes_from_cursor ⇒ Object
Returns the value of attribute default_attributes_from_cursor.
15 16 17 |
# File 'lib/jinrai/config.rb', line 15 def default_attributes_from_cursor @default_attributes_from_cursor end |
#default_cursor_format ⇒ Object
Returns the value of attribute default_cursor_format.
15 16 17 |
# File 'lib/jinrai/config.rb', line 15 def default_cursor_format @default_cursor_format end |
#default_cursor_per ⇒ Object
Returns the value of attribute default_cursor_per.
15 16 17 |
# File 'lib/jinrai/config.rb', line 15 def default_cursor_per @default_cursor_per end |
#default_cursor_sort_order ⇒ Object
Returns the value of attribute default_cursor_sort_order.
15 16 17 |
# File 'lib/jinrai/config.rb', line 15 def default_cursor_sort_order @default_cursor_sort_order end |