Class: AwsPublicIps::Formatters::Prettyjson

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_public_ips/formatters/prettyjson.rb

Instance Method Summary collapse

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, options)
  @results = results
  @options = options
end

Instance Method Details

#formatObject



13
14
15
# File 'lib/aws_public_ips/formatters/prettyjson.rb', line 13

def format
  ::JSON.pretty_generate(@results)
end