Class: CollectdServer::Packet::String

Inherits:
Part
  • Object
show all
Defined in:
lib/collectd_server/packet.rb

Direct Known Subclasses

Host, Plugin, PluginInstance, Type, TypeInstance

Instance Attribute Summary

Attributes inherited from Part

#content

Instance Method Summary collapse

Methods inherited from Part

add_type, class_for, part_for, type

Constructor Details

#initialize(content) ⇒ String

Returns a new instance of String.



102
103
104
# File 'lib/collectd_server/packet.rb', line 102

def initialize(content)
  @content = content[0..-2] # strip off the null byte at the end
end