class

Moxfield::Api

Inherits Reference < Object

Constants

API_CARD_SEARCH_PATH = "/v2/cards/search"
API_DECK_SEARCH_PATH = "/v2/decks/search"
API_HEADERS = HTTP::Headers {"User-Agent" => "PostmanRuntime/7.31.1", "Content-Type" => "application/json; charset=utf-8"}
API_HOST = "api2.moxfield.com"
API_SCHEME = "https"
SORT_ASC = "Ascending"

This is a constant that defines the value for sorting in ascending order.

SORT_DES = "Descending"

This is a constant that defines the value for sorting in descending order.

SORT_UPDATED = "updated"

This is a constant that defines the value for sorting by "updated".

Class methods

configure(options : Options = Options.new, &)
Source
configure(options : Options = Options.new)
Source
logger
Source
make_request(path : String, params : String | Nil = nil)

Make a request with a string URI

Source
make_request(uri : URI)

Make a request with a URI object

Source
make_request_uri(path : String, params : String | Nil = nil) : URI

URI helper function

Source

Instance methods

logger
Source

Nested types