class YandexCheckout::Error
Public Class Methods
build(*res)
click to toggle source
# File lib/yandex-checkout/error.rb, line 20 def build(*res) body = res.last new JSON.parse(body.first) end
new(opts)
click to toggle source
Calls superclass method
YandexCheckout::Optional::new
# File lib/yandex-checkout/error.rb, line 25 def new(opts) super opts.each_with_object({}) { |(key, val), obj| obj[key.to_sym] = val } end
Public Instance Methods
error?()
click to toggle source
# File lib/yandex-checkout/error.rb, line 15 def error? type == 'error' end