class Clashinator::ArrayResource::Cursor
This class represent the cursor model that contains an after attribute, a before attribute or neither, for properly paging array resources
Attributes
after[RW]
before[RW]
Public Class Methods
new(cursor_hash)
click to toggle source
# File lib/clashinator/array_resource.rb, line 33 def initialize(cursor_hash) @after = cursor_hash['after'] if cursor_hash.key?('after') @before = cursor_hash['before'] if cursor_hash.key?('before') end