lib/vacuum/response.rb in vacuum-3.3.0 vs lib/vacuum/response.rb in vacuum-3.4.0
- old
+ new
@@ -10,10 +10,11 @@
extend Forwardable
# @!method dig(*key)
# Delegates to the Hash returned by {Response#to_h} to extract a nested
# value specified by the sequence of keys
+ #
# @param [String] key one or more keys
# @see https://ruby-doc.org/core/Hash.html#method-i-dig
def_delegator :to_h, :dig
class << self
@@ -36,9 +37,10 @@
def parse
parser ? parser.parse(body) : to_h
end
# Casts body to Hash
+ #
# @return [Hash]
def to_h
JSON.parse(body)
end
end