Class: SNMPTableViewer::Formatter Abstract
- Inherits:
-
Object
- Object
- SNMPTableViewer::Formatter
- Defined in:
- lib/snmp_table_viewer/formatter.rb
Overview
This class is abstract.
Parent class for formatters. Which take data and headings and output it in a given format.
Defined Under Namespace
Classes: CSV, JSON, Raw, Table
Instance Method Summary collapse
-
#initialize(data:, headings: []) ⇒ Formatter
constructor
Create a new instance of Formatter.
Constructor Details
#initialize(data:, headings: []) ⇒ Formatter
Create a new instance of Formatter.
11 12 13 14 |
# File 'lib/snmp_table_viewer/formatter.rb', line 11 def initialize(data:, headings: []) @headings = headings @data = data end |