lib/tanita/api/client/helpers.rb in tanita-api-client-0.5.0 vs lib/tanita/api/client/helpers.rb in tanita-api-client-0.5.1
- old
+ new
@@ -31,10 +31,10 @@
req.set_form_data(params)
http.request(req)
end
def parse_json(str)
- JSON.parse(str, :symbolize_names => true)
+ JSON.parse(str, symbolize_names: true)
rescue JSON::ParserError => e
raise Error.new("JSON::ParseError: '#{e}'\nstr:#{str}")
end
def time_format(time)