Module: Wifimap::Parsable
- Included in:
- Wifimap::Parser::Airodump, Wifimap::Parser::SniffProbes
- Defined in:
- lib/wifimap/parsable.rb
Overview
The parsable module contains some helper methods and must-implement directives for parser classes.
Instance Method Summary collapse
-
#access_points ⇒ Object
To be implemented in the class.
-
#dump ⇒ String
Get the dump property for further processing.
-
#dump_rows ⇒ Array
Split the dump by newline to get an array of all rows.
-
#stations ⇒ Object
To be implemented in the class.
Instance Method Details
#access_points ⇒ Object
To be implemented in the class.
29 30 31 |
# File 'lib/wifimap/parsable.rb', line 29 def access_points raise ::NotImplementedError end |
#dump ⇒ String
Get the dump property for further processing.
10 11 12 13 14 |
# File 'lib/wifimap/parsable.rb', line 10 def dump raise 'Error: the dump is empty' if @dump.nil? @dump end |
#dump_rows ⇒ Array
Split the dump by newline to get an array of all rows.
19 20 21 |
# File 'lib/wifimap/parsable.rb', line 19 def dump_rows dump.split("\n") end |
#stations ⇒ Object
To be implemented in the class.
24 25 26 |
# File 'lib/wifimap/parsable.rb', line 24 def stations raise ::NotImplementedError end |