Sha256: f46b291c318649e0d8511204ed3ccf3057b3817d63aa7dc3ba34df44e3d6830f
Contents?: true
Size: 371 Bytes
Versions: 94
Compression:
Stored size: 371 Bytes
Contents
require_relative 'error_factory' class ReeErrors::PaymentRequiredError < ReeErrors::ErrorFactory include Ree::BeanDSL bean :payment_required_error do link :build_error link 'ree_errors/error', -> { Error } end contract Symbol, Nilor[String] => SubclassOf[Error] def build(code, locale = nil) build_error(:payment_required, code, locale) end end
Version data entries
94 entries across 94 versions & 1 rubygems