class YandexCheckout::Response

Public Class Methods

build(*res) click to toggle source
# File lib/yandex-checkout/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/yandex-checkout/response.rb, line 15
def new(opts)
  super opts.each_with_object({}) { |(key, val), obj| obj[key.to_sym] = val }
end