Class: SerwerSMS::Http::HttpToken

Inherits:
ApiClient
  • Object
show all
Defined in:
lib/serwersms/http/http_token.rb

Constant Summary

Constants inherited from ApiClient

ApiClient::API_URL, ApiClient::SYSTEM

Instance Method Summary collapse

Methods inherited from ApiClient

#call

Constructor Details

#initialize(token:, **opts) ⇒ HttpToken

Returns a new instance of HttpToken.

Raises:



4
5
6
7
8
9
10
# File 'lib/serwersms/http/http_token.rb', line 4

def initialize(token:, **opts)
  raise SerwerSMS::Error, 'Token is empty' if token.to_s.strip.empty?

  super(**opts)

  @token = token
end