Sha256: 7d6715dbb1ebd931a6c92c8aad3e1be89d84c80d8a2aed3c5acf0221555663fb
Contents?: true
Size: 446 Bytes
Versions: 5
Compression:
Stored size: 446 Bytes
Contents
module Mundipagg class Response attr_reader :body alias :payload :body def initialize(body = {}) @body = body end def success? payload[:success] end def error ::Mundipagg::Error.new error_item[:description], error_item[:error_code] rescue NoMethodError => event ::Mundipagg::Error.new "Unknown error", 0 end def error_item raise "Not yet implemented" end end end
Version data entries
5 entries across 5 versions & 1 rubygems