Class: Scimitar::Lists::Count
- Inherits:
-
Object
- Object
- Scimitar::Lists::Count
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/scimitar/lists/count.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#offset ⇒ Object
readonly
Read-only accessor that represents #start_index as a zero-based offset, rather than 1-based.
-
#start_index ⇒ Object
Returns the value of attribute start_index.
-
#total ⇒ Object
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Count
constructor
A new instance of Count.
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
#limit ⇒ Object
Returns the value of attribute limit.
6 7 8 |
# File 'app/models/scimitar/lists/count.rb', line 6 def limit @limit end |
#offset ⇒ Object (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_index ⇒ Object
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 |
#total ⇒ Object
Returns the value of attribute total.
6 7 8 |
# File 'app/models/scimitar/lists/count.rb', line 6 def total @total end |