Class: Paytunia::ConnectionWrappers::BasicAuthWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/paytunia/connection_wrappers/basic_auth_wrapper.rb

Instance Method Summary collapse

Constructor Details

#initialize(username, password, site) ⇒ BasicAuthWrapper

Returns a new instance of BasicAuthWrapper.



8
9
10
11
12
# File 'lib/paytunia/connection_wrappers/basic_auth_wrapper.rb', line 8

def initialize(username, password, site)
  @username = username
  @password = password
  @site = site
end

Instance Method Details

#get(path) ⇒ Object



14
15
16
# File 'lib/paytunia/connection_wrappers/basic_auth_wrapper.rb', line 14

def get(path)
  do_request(:get, path)
end

#post(path, data) ⇒ Object



18
19
20
# File 'lib/paytunia/connection_wrappers/basic_auth_wrapper.rb', line 18

def post(path, data)
  do_request(:post, path, data)
end