Module: Sequel::Plugins::List::ClassMethods

Defined in:
lib/sequel/plugins/list.rb

Instance Attribute Summary collapse

Instance Attribute Details

#position_fieldObject

The column name holding the position in the list, as a symbol.


83
84
85
# File 'lib/sequel/plugins/list.rb', line 83

def position_field
  @position_field
end

#scope_procObject

A proc that scopes the dataset, so that there can be multiple positions in the list, but the positions are unique with the scoped dataset. This proc should accept an instance and return a dataset representing the list.


88
89
90
# File 'lib/sequel/plugins/list.rb', line 88

def scope_proc
  @scope_proc
end

#top_of_listObject (readonly)

An Integer to use as the position of the top of the list. Defaults to 1.


91
92
93
# File 'lib/sequel/plugins/list.rb', line 91

def top_of_list
  @top_of_list
end