Class: Paytunia::ConnectionWrappers::BasicAuthWrapper
- Inherits:
-
Object
- Object
- Paytunia::ConnectionWrappers::BasicAuthWrapper
- Defined in:
- lib/paytunia/connection_wrappers/basic_auth_wrapper.rb
Instance Method Summary collapse
- #get(path) ⇒ Object
-
#initialize(username, password, site) ⇒ BasicAuthWrapper
constructor
A new instance of BasicAuthWrapper.
- #post(path, data) ⇒ Object
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 |