Class: Kassa24::Request
- Inherits:
-
Object
- Object
- Kassa24::Request
- Defined in:
- lib/kassa24/request.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(login:, password:, url:, params:) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(login:, password:, url:, params:) ⇒ Request
Returns a new instance of Request.
3 4 5 6 7 8 9 |
# File 'lib/kassa24/request.rb', line 3 def initialize(login:, password:, url:, params:) @conn = Faraday.new( url: url ) @conn.request :authorization, :basic, login, password @params = params end |