module Wifimap::Parsable

The parsable module contains some helper methods and must-implement directives for parser classes.

Public Instance Methods

access_points() click to toggle source

To be implemented in the class.

# File lib/wifimap/parsable.rb, line 29
def access_points
  raise ::NotImplementedError
end
dump() click to toggle source

Get the dump property for further processing.

@return [String]

# File lib/wifimap/parsable.rb, line 10
def dump
  raise 'Error: the dump is empty' if @dump.nil?

  @dump
end
dump_rows() click to toggle source

Split the dump by newline to get an array of all rows.

@return [Array]

# File lib/wifimap/parsable.rb, line 19
def dump_rows
  dump.split("\n")
end
stations() click to toggle source

To be implemented in the class.

# File lib/wifimap/parsable.rb, line 24
def stations
  raise ::NotImplementedError
end