class Yookassa::Response
Public Class Methods
build(*res)
click to toggle source
# File lib/yookassa/response.rb, line 10 def build(*res) body = res.last new JSON.parse(body.first) end
new(opts)
click to toggle source
Calls superclass method
# File lib/yookassa/response.rb, line 15 def new(opts) super opts.each_with_object({}) { |(key, val), obj| obj[key.to_sym] = val } end