Sha256: b0595a2633b5cfd493fc61bb500f837e72d06d0552d732116ae0dda00d1cb3f9
Contents?: true
Size: 658 Bytes
Versions: 2
Compression:
Stored size: 658 Bytes
Contents
require "klarna/version" require "klarna/configuration" require "klarna/client" require "klarna/response" require "klarna/order" require "klarna/capture" require "klarna/credit" require "klarna/refund" module Klarna class << self attr_writer :configuration end def self.configuration @configuration ||= Configuration.new end def self.configure yield(configuration) end def self.client(type = :order) case type when :credit Credit.new(configuration) when :order Order.new(configuration) when :refund Refund.new(configuration) when :capture Capture.new(configuration) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
klarna_client-0.9.1 | lib/klarna.rb |
klarna_client-0.9.0 | lib/klarna.rb |