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) ⇒ Prettyjson
constructor
A new instance of Prettyjson.
Constructor Details
#initialize(results) ⇒ Prettyjson
Returns a new instance of Prettyjson.
8 9 10 |
# File 'lib/aws_public_ips/formatters/prettyjson.rb', line 8 def initialize(results) @results = results end |
Instance Method Details
#format ⇒ Object
12 13 14 |
# File 'lib/aws_public_ips/formatters/prettyjson.rb', line 12 def format JSON.pretty_generate(@results) end |