class Snmp2mkr::ConfigTypes::Oid
Attributes
value[R]
Public Instance Methods
collect_children()
click to toggle source
# File lib/snmp2mkr/config_types/oid.rb, line 15 def collect_children [@value] end
evaluate(context: binded_context, previous: nil)
click to toggle source
# File lib/snmp2mkr/config_types/oid.rb, line 19 def evaluate(context: binded_context, previous: nil) value.evaluate(context: context, previous: previous) end
setup(str)
click to toggle source
# File lib/snmp2mkr/config_types/oid.rb, line 8 def setup(str) raise TypeError, 'Oid must be given a String or a TemplateString' unless str.kind_of?(String) || str.kind_of?(TemplateString) @value = str.is_a?(String) ? RawString.new(str) : str end