Class: Monobank::Auth::Private
- Inherits:
-
Object
- Object
- Monobank::Auth::Private
- Defined in:
- lib/monobank/auth/private.rb
Instance Method Summary collapse
-
#initialize(token:) ⇒ Private
constructor
A new instance of Private.
- #to_headers ⇒ Object
Constructor Details
#initialize(token:) ⇒ Private
Returns a new instance of Private.
4 5 6 |
# File 'lib/monobank/auth/private.rb', line 4 def initialize(token:) @token = token end |
Instance Method Details
#to_headers ⇒ Object
8 9 10 |
# File 'lib/monobank/auth/private.rb', line 8 def to_headers(*) { 'X-Token' => token } end |