Snmp.Object (elixir_snmp v0.2.1) View Source

Data structure for SNMP object

Link to this section Summary

Functions

Returns object

Link to this section Types

Specs

t() :: %Snmp.Object{
  name: String.t() | nil,
  oid: Snmp.OID.t() | nil,
  value: term() | nil
}

Link to this section Functions

Specs

new(map()) :: t()

Returns object

Examples

iex> new(%{oid: [1,2,3,4], value: :noSuchObject}) %Snmp.Object{name: nil, oid: [1, 2, 3, 4], value: :noSuchObject}

iex> new(%{oid: [1,2,3,4], value: 'This is a charlist'}) %Snmp.Object{name: nil, oid: [1, 2, 3, 4], value: 'This is a charlist'}