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

Struct for PrintNode Printer resource

Link to this section Summary

Link to this section Functions

Specs

fetch(
  %PrintNode.Resources.Printer{
    capabilities: term(),
    computer: term(),
    createTimestamp: term(),
    default: term(),
    description: term(),
    id: term(),
    name: term(),
    state: term()
  },
  any()
) :: :error | {:ok, any()}

Callback implementation for Access.fetch/2.

Link to this function

get(printer, key, default)

View Source

Specs

get(
  %PrintNode.Resources.Printer{
    capabilities: term(),
    computer: term(),
    createTimestamp: term(),
    default: term(),
    description: term(),
    id: term(),
    name: term(),
    state: term()
  },
  any(),
  any()
) :: any()

See Map.get/3.

Link to this function

get_and_update(printer, key, func)

View Source

Specs

get_and_update(
  %PrintNode.Resources.Printer{
    capabilities: term(),
    computer: term(),
    createTimestamp: term(),
    default: term(),
    description: term(),
    id: term(),
    name: term(),
    state: term()
  },
  any(),
  (any() -> :pop | {any(), any()})
) :: {any(), map()}

Callback implementation for Access.get_and_update/3.

Specs

pop(
  %PrintNode.Resources.Printer{
    capabilities: term(),
    computer: term(),
    createTimestamp: term(),
    default: term(),
    description: term(),
    id: term(),
    name: term(),
    state: term()
  },
  any()
) :: {any(), map()}

Callback implementation for Access.pop/2.