Parent

Class Index [+]

Quicksearch

ActiveMerchant::Billing::Integrations::Return

Attributes

params[RW]
notification[R]

Public Class Methods

new(query_string, options = {}) click to toggle source
    # File lib/active_merchant/billing/integrations/return.rb, line 8
 8:         def initialize(query_string, options = {})
 9:           @params  = parse(query_string)
10:           @options = options
11:         end

Public Instance Methods

cancelled?() click to toggle source

Not cancelled by default. Overridden in the child class.

    # File lib/active_merchant/billing/integrations/return.rb, line 19
19:         def cancelled?
20:           false
21:         end
message() click to toggle source
    # File lib/active_merchant/billing/integrations/return.rb, line 23
23:         def message
24:           
25:         end
parse(query_string) click to toggle source
    # File lib/active_merchant/billing/integrations/return.rb, line 27
27:         def parse(query_string)
28:           return {} if query_string.blank?
29:           
30:           query_string.split('&').inject({}) do |memo, chunk|
31:             next if chunk.empty?
32:             key, value = chunk.split('=', 2)
33:             next if key.empty?
34:             value = value.nil? ? nil : CGI.unescape(value)
35:             memo[CGI.unescape(key)] = value
36:             memo
37:           end
38:         end
success?() click to toggle source

Successful by default. Overridden in the child class

    # File lib/active_merchant/billing/integrations/return.rb, line 14
14:         def success?
15:           true
16:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.