struct Moxfield::Types::PagedResponse(T)

Included Modules

Defined in:

moxfield/models/response.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new #

[View source]

Instance Method Detail

def data : Array(T) #

[View source]
def data=(data : Array(T)) #

[View source]
def each(&) #
Description copied from module Enumerable(T)

Must yield this collection's elements to the block.


[View source]
def fetch_next_page : PagedResponse(T) #

Will make an api request using the next_page value if available


[View source]
def has_more? : Bool #

[View source]
def next_page : URI | Nil #

[View source]
def page_number : Int32 #

[View source]
def page_number=(page_number : Int32) #

[View source]
def page_size : Int32 #

[View source]
def page_size=(page_size : Int32) #

[View source]
def total_pages : Int32 #

[View source]
def total_pages=(total_pages : Int32) #

[View source]
def total_results : Int32 #

[View source]
def total_results=(total_results : Int32) #

[View source]
def uri : URI | Nil #

[View source]
def uri=(uri : URI | Nil) #

[View source]