Class: DHCP::UserClassInformationOption
- Defined in:
- lib/net/dhcp/options.rb
Overview
see: rfc3004
Instance Attribute Summary
Attributes inherited from Option
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ UserClassInformationOption
constructor
A new instance of UserClassInformationOption.
- #to_s ⇒ Object
Methods inherited from Option
Constructor Details
#initialize(params = {}) ⇒ UserClassInformationOption
Returns a new instance of UserClassInformationOption.
506 507 508 509 510 |
# File 'lib/net/dhcp/options.rb', line 506 def initialize(params={}) params[:type] = $DHCP_USERCLASS params[:payload] = params.fetch(:payload, [0x67, 0x50, 0x58, 0x45] ) super(params) end |
Instance Method Details
#to_s ⇒ Object
512 513 514 |
# File 'lib/net/dhcp/options.rb', line 512 def to_s "UserClassInformation = #{self.payload.pack('C*')}" end |