Class: Seafoam::Formatters::Json::InfoFormatter
- Inherits:
-
Base::InfoFormatter
- Object
- Base::InfoFormatter
- Seafoam::Formatters::Json::InfoFormatter
- Defined in:
- lib/seafoam/formatters/json.rb
Overview
A JSON-based formatter for the ‘info` command.
Instance Attribute Summary
Attributes inherited from Base::InfoFormatter
#major_version, #minor_version
Instance Method Summary collapse
Methods inherited from Base::InfoFormatter
Constructor Details
This class inherits a constructor from Seafoam::Formatters::Base::InfoFormatter
Instance Method Details
#format ⇒ Object
47 48 49 50 51 52 |
# File 'lib/seafoam/formatters/json.rb', line 47 def format { major_version: major_version, minor_version: minor_version, }.to_json end |