Class: Seafoam::Formatters::Json::InfoFormatter

Inherits:
Base::InfoFormatter show all
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

#initialize

Constructor Details

This class inherits a constructor from Seafoam::Formatters::Base::InfoFormatter

Instance Method Details

#formatObject



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