Class: HyperPay::Base

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/HyperPay/base.rb

Direct Known Subclasses

CopyAndPay

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



11
12
13
# File 'lib/HyperPay/base.rb', line 11

def initialize
  self.class.base_uri base_url
end

Instance Method Details

#interpret_response_code(code) ⇒ Object



15
16
17
# File 'lib/HyperPay/base.rb', line 15

def interpret_response_code(code)
  ResponseCodeInterpreter.interpret(code)
end