Class: Monetra::Transaction::Base

Inherits:
Base show all
Defined in:
lib/monetra.rb

Overview


Direct Known Subclasses

Admin, Preauth, PreauthComplete, Return, Sale, Settle, Void

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

parse_uri, post, send, #to_h

Constructor Details

#initialize(*args) ⇒ Base




115
116
117
118
# File 'lib/monetra.rb', line 115

def initialize(*args)
  @options = args.last.is_a?(Hash) ? args.pop : {}
  @options.merge!({:action => self.class.to_s.split('::')[-1].upcase})
end