class BER::BerIdentifiedOid

Attributes

ber_identifier[RW]

Public Class Methods

new(oid) click to toggle source
# File lib/ber/identified/oid.rb, line 7
def initialize(oid)
  @value = oid.split(/\./).map(&:to_i) if oid.is_a?(String)
end

Public Instance Methods

to_arr() click to toggle source
# File lib/ber/identified/oid.rb, line 23
def to_arr
  @value.dup
end
to_ber() click to toggle source
# File lib/ber/identified/oid.rb, line 11
def to_ber
  to_ber_oid
end
to_ber_oid() click to toggle source
# File lib/ber/identified/oid.rb, line 15
def to_ber_oid
  @value.to_ber_oid
end
to_s() click to toggle source
# File lib/ber/identified/oid.rb, line 19
def to_s
  @value.join('.')
end