Class: Scimitar::Lists::Count

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/models/scimitar/lists/count.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Count

Returns a new instance of Count.



9
10
11
12
13
14
# File 'app/models/scimitar/lists/count.rb', line 9

def initialize(*args)
  @limit       = 100
  @start_index = 1

  super(*args)
end

Instance Attribute Details

#limitObject

Returns the value of attribute limit.



6
7
8
# File 'app/models/scimitar/lists/count.rb', line 6

def limit
  @limit
end

#offsetObject (readonly)

Read-only accessor that represents #start_index as a zero-based offset, rather than 1-based. This is useful for most storage engines.



52
53
54
# File 'app/models/scimitar/lists/count.rb', line 52

def offset
  @offset
end

#start_indexObject

Returns the value of attribute start_index.



6
7
8
# File 'app/models/scimitar/lists/count.rb', line 6

def start_index
  @start_index
end

#totalObject

Returns the value of attribute total.



6
7
8
# File 'app/models/scimitar/lists/count.rb', line 6

def total
  @total
end