Skip to content
Browse files

copy editing doc

  • Loading branch information...
1 parent de6f86d commit 96c23a21861b76442e31188076c2191bf636b79c @neerajdotname neerajdotname committed
Showing with 9 additions and 2 deletions.
  1. +9 −2 nimbleshop_core/lib/nimbleshop/processor/base.rb
View
11 nimbleshop_core/lib/nimbleshop/processor/base.rb
@@ -1,4 +1,11 @@
-module Processor
+module Processor #:nodoc:
+ # = Processor
+ #
+ # Processor class is responsible for payment processing transactions using gateway. This is an abstract
+ # class in the sense that implementations of processors should sublass Processor class.
+ #
+ # It defines five methods: authorize, kapture, purchase, void and refund .
+ # These methods in turn invoke methods do_authorize, do_kapture, do_purchase, do_void, do_refund.
class Base
extend ActiveModel::Callbacks
@@ -41,7 +48,7 @@ def execute(operation, options = {})
end
end
- # this method can be overriden by individual payment method
+ # this method can be overriden by individual payment processor
def set_active_merchant_mode
mode = Rails.env.production? ? :production : :test
ActiveMerchant::Billing::Base.mode = mode

0 comments on commit 96c23a2

Please sign in to comment.
Something went wrong with that request. Please try again.