summaryrefslogtreecommitdiff
path: root/lib/chef/http/json_output.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-07-26 17:26:36 -0700
committerTim Smith <tsmith84@gmail.com>2020-07-26 17:26:36 -0700
commit5f6daf7b670b571447a5d907219ab7804e3c9007 (patch)
treeec228a87abab99d4dbc0626192d30b724a08888e /lib/chef/http/json_output.rb
parentba0c5fcd7a1735b4ae170816dc48b05d791b9733 (diff)
downloadchef-attrs.tar.gz
Combine attr_readers onto a single lineattrs
The method takes more than 1 argument Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/http/json_output.rb')
-rw-r--r--lib/chef/http/json_output.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/http/json_output.rb b/lib/chef/http/json_output.rb
index bad009bd14..f36b35fec2 100644
--- a/lib/chef/http/json_output.rb
+++ b/lib/chef/http/json_output.rb
@@ -26,8 +26,7 @@ class Chef
# Middleware that takes an HTTP response, parses it as JSON if possible.
class JSONOutput
- attr_accessor :raw_output
- attr_accessor :inflate_json_class
+ attr_accessor :raw_output, :inflate_json_class
def initialize(opts = {})
@raw_output = opts[:raw_output]