Sha256: 5cf4d77f2e9607676372d88e81c080516d22c8d5e322331c007a40e315d9b481
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
# frozen_string_literal: true require_relative "./types" module Yookassa module Entity class Error < Dry::Struct attribute :type, Types::String attribute? :id, Types::String attribute? :code, Types::String attribute? :description, Types::String attribute? :parameter, Types::String def error? type == "error" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yookassa-0.2.0 | lib/yookassa/entity/error.rb |