class Ansr::Group
Attributes
field[R]
group[R]
key[R]
model[R]
Public Class Methods
new(group_key, model, group)
click to toggle source
# File lib/ansr/relation/group.rb, line 5 def initialize(group_key, model, group) @field, @key = group_key.first @model = model @group = group end
Public Instance Methods
records()
click to toggle source
model instances belonging to this group
# File lib/ansr/relation/group.rb, line 22 def records raise "Group#records must be implemented by subclass" end
start()
click to toggle source
offset in the response
# File lib/ansr/relation/group.rb, line 17 def start raise "Group#start must be implemented by subclass" end
total()
click to toggle source
size of the group
# File lib/ansr/relation/group.rb, line 12 def total raise "Group#total must be implemented by subclass" end