Module: DragonpayRails

Defined in:
lib/dragonpay_rails.rb,
lib/dragonpay_rails/version.rb

Constant Summary collapse

VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



7
8
9
# File 'lib/dragonpay_rails.rb', line 7

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



14
15
16
# File 'lib/dragonpay_rails.rb', line 14

def self.configure
  yield configuration
end

.pay_now {|payment| ... } ⇒ Object

Yields:



22
23
24
# File 'lib/dragonpay_rails.rb', line 22

def self.pay_now
  yield payment
end

.paymentObject



18
19
20
# File 'lib/dragonpay_rails.rb', line 18

def self.payment
  @payment ||= Payment.new
end