struct Moxfield::Types::PagedResponse(T)
- Moxfield::Types::PagedResponse(T)
- Struct
- Value
- Object
Included Modules
- Enumerable(T)
- JSON::Serializable
Defined in:
moxfield/models/response.crConstructors
Instance Method Summary
- #data : Array(T)
- #data=(data : Array(T))
-
#each(&)
Must yield this collection's elements to the block.
-
#fetch_next_page : PagedResponse(T)
Will make an api request using the next_page value if available
- #has_more? : Bool
- #next_page : URI | Nil
- #page_number : Int32
- #page_number=(page_number : Int32)
- #page_size : Int32
- #page_size=(page_size : Int32)
- #total_pages : Int32
- #total_pages=(total_pages : Int32)
- #total_results : Int32
- #total_results=(total_results : Int32)
- #uri : URI | Nil
- #uri=(uri : URI | Nil)
Constructor Detail
Instance Method Detail
def each(&)
#
Description copied from module Enumerable(T)
Must yield this collection's elements to the block.
def fetch_next_page : PagedResponse(T)
#
Will make an api request using the next_page value if available