PrintNode.Resources.PrintJob (ExPrintNode v0.1.3) View Source

Struct for PrintNode PrintJob resource

Link to this section Summary

Link to this section Functions

Specs

fetch(
  %PrintNode.Resources.PrintJob{
    authentication: term(),
    content: term(),
    contentType: term(),
    createTimestamp: term(),
    expireAt: term(),
    id: term(),
    options: term(),
    printer: term(),
    qty: term(),
    source: term(),
    state: term(),
    title: term()
  },
  any()
) :: :error | {:ok, any()}

Callback implementation for Access.fetch/2.

Link to this function

get(printjob, key, default)

View Source

Specs

get(
  %PrintNode.Resources.PrintJob{
    authentication: term(),
    content: term(),
    contentType: term(),
    createTimestamp: term(),
    expireAt: term(),
    id: term(),
    options: term(),
    printer: term(),
    qty: term(),
    source: term(),
    state: term(),
    title: term()
  },
  any(),
  any()
) :: any()

See Map.get/3.

Link to this function

get_and_update(printjob, key, func)

View Source

Specs

get_and_update(
  %PrintNode.Resources.PrintJob{
    authentication: term(),
    content: term(),
    contentType: term(),
    createTimestamp: term(),
    expireAt: term(),
    id: term(),
    options: term(),
    printer: term(),
    qty: term(),
    source: term(),
    state: term(),
    title: term()
  },
  any(),
  (any() -> :pop | {any(), any()})
) :: {any(), map()}

Callback implementation for Access.get_and_update/3.

Specs

pop(
  %PrintNode.Resources.PrintJob{
    authentication: term(),
    content: term(),
    contentType: term(),
    createTimestamp: term(),
    expireAt: term(),
    id: term(),
    options: term(),
    printer: term(),
    qty: term(),
    source: term(),
    state: term(),
    title: term()
  },
  any()
) :: {any(), map()}

Callback implementation for Access.pop/2.