Class: AwsPublicIps::Formatters::Prettyjson
- Inherits:
-
Object
- Object
- AwsPublicIps::Formatters::Prettyjson
- Defined in:
- lib/aws_public_ips/formatters/prettyjson.rb
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(results, options) ⇒ Prettyjson
constructor
A new instance of Prettyjson.
Constructor Details
#initialize(results, options) ⇒ Prettyjson
Returns a new instance of Prettyjson.
8 9 10 11 |
# File 'lib/aws_public_ips/formatters/prettyjson.rb', line 8 def initialize(results, ) @results = results @options = end |
Instance Method Details
#format ⇒ Object
13 14 15 |
# File 'lib/aws_public_ips/formatters/prettyjson.rb', line 13 def format ::JSON.pretty_generate(@results) end |