Class: Monobank::Auth::Private

Inherits:
Object
  • Object
show all
Defined in:
lib/monobank/auth/private.rb

Instance Method Summary collapse

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_headersObject



8
9
10
# File 'lib/monobank/auth/private.rb', line 8

def to_headers(*)
  { 'X-Token' => token }
end