Class: Dot11::Dot11::Dot11AssoReq
- Includes:
- Dot11EltContainer
- Defined in:
- lib/dot11/dot11.rb
Instance Attribute Summary collapse
-
#capabilities ⇒ Object
Returns the value of attribute capabilities.
-
#listen_interval ⇒ Object
Returns the value of attribute listen_interval.
Instance Method Summary collapse
Methods included from Dot11EltContainer
#/, #element_data, #element_to_s, #elements, #elements_by_id
Methods inherited from Packet
#=~, #initialize, new, older_new, #to_filter
Constructor Details
This class inherits a constructor from Dot11::Packet
Instance Attribute Details
#capabilities ⇒ Object
Returns the value of attribute capabilities.
596 597 598 |
# File 'lib/dot11/dot11.rb', line 596 def capabilities @capabilities end |
#listen_interval ⇒ Object
Returns the value of attribute listen_interval.
596 597 598 |
# File 'lib/dot11/dot11.rb', line 596 def listen_interval @listen_interval end |
Instance Method Details
#data ⇒ Object
600 601 602 603 604 |
# File 'lib/dot11/dot11.rb', line 600 def data buffer = [capabilities, listen_interval].pack("nv") buffer += element_data end |
#to_s ⇒ Object
606 607 608 609 610 611 612 613 |
# File 'lib/dot11/dot11.rb', line 606 def to_s "Dot11AssoReq\n" + "---------------\n" + "capabilities: ...... #{capabilities}\n" + "listen_interval: ... #{listen_interval}\n" + "elements:\n" + element_to_s.indent(7) end |