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