Class: Gitlang::JsonFormatter
- Inherits:
-
Object
- Object
- Gitlang::JsonFormatter
- Defined in:
- lib/gitlang/formatters/json_formatter.rb
Overview
A class for formatting various results to JSON format.
Instance Method Summary collapse
-
#format(organization_name, languages) ⇒ Object
Create a JSON formatted string for the data provided.
Instance Method Details
#format(organization_name, languages) ⇒ Object
Create a JSON formatted string for the data provided.
13 14 15 16 |
# File 'lib/gitlang/formatters/json_formatter.rb', line 13 def format(organization_name, languages) JSON.pretty_generate(organization: organization_name, languages: languages) end |