struct Scryfall::CardList

Included Modules

Defined in:

scryfall/models/card_list.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(Card) #

[View source]
def each(&) #
Description copied from module Enumerable(Scryfall::Card)

Must yield this collection's elements to the block.


[View source]
def fetch_next_page : CardList #

Will make an api request using the next_page value if available


[View source]
def fetch_prev_page : CardList #

Will make an api request decrementing the page number if available


[View source]
def has_more : Bool #

[View source]
def has_more? : Bool #

[View source]
def next_page : URI | Nil #

[View source]
def page : Int32 #

Returns the current page number


[View source]
def params #

[View source]
def prev_page : URI | Nil #

[View source]
def total_cards : Int32 #

[View source]
def uri #

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

[View source]
def warnings : Array(JSON::Any) #

[View source]