Sha256: f538a53121c5f145a0704c20e77288916ee16a1096540ce78d8a91f7f7ad216e

Contents?: true

Size: 202 Bytes

Versions: 4

Compression:

Stored size: 202 Bytes

Contents

module PerfectMoneyMerchant
	class BasicError < StandardError
		attr_reader :errors

		def add_error(name, value)
			@errors ||= Hashie::Mash.new
			@errors[name] = value # TODO: add I18n
		end
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
perfect_money_merchant-0.1.2 lib/perfect_money_merchant/error.rb
perfect_money_merchant-0.1.1.alpha.1 lib/perfect_money_merchant/error.rb
perfect_money_merchant-0.1.0.alpha.4 lib/perfect_money_merchant/error.rb
perfect_money_merchant-0.1.0.alpha.3 lib/perfect_money_merchant/error.rb