class Wallhaven::Downloader::Downloader
- Wallhaven::Downloader::Downloader
- Admiral::Command
- Reference
- Object
Defined in:
wallhaven-downloader.crConstant Summary
-
HELP =
{"description" => ""}
Class Method Summary
Instance Method Summary
- #__rescue_from___Admiral__Error(e)
-
#arguments
Returns the commands
Arguments
object. -
#build_query_params(page : UInt32)
Build the query params for the search query.
-
#flags
Returns the commands
Flags
object. - #help
-
#request(uri : URI)
Execute a request to a HTTP endpoint (URI).
-
#request(uri : String)
Execute a request to a HTTP endpoint (string).
-
#request_and_parse(uri : URI | String)
Execute a request to a HTTP endpoint and parse the responded HTML.
-
#run
Main command loop.
-
#sub(command, *args, **params)
Invokes a sub command by name, passing
self
as the parent. - #version
Class Method Detail
Instance Method Detail
def arguments
#
Description copied from class Admiral::Command
Returns the commands Arguments
object.
You can access names arguments by name.
You can also access the remaning arguments using .arguments[index]
.
def flags
#
Description copied from class Admiral::Command
Returns the commands Flags
object.
You can access names flags by name.
def request_and_parse(uri : URI | String)
#
Execute a request to a HTTP endpoint and parse the responded HTML.
def sub(command, *args, **params)
#
Description copied from class Admiral::Command
Invokes a sub command by name, passing self
as the parent.