Class: SerwerSMS::ClientCredentials

Inherits:
Object
  • Object
show all
Includes:
ResourcesMixin
Defined in:
lib/serwersms/client_credentials.rb

Instance Method Summary collapse

Methods included from ResourcesMixin

#accounts, #blacklist, #contacts, #error, #files, #groups, #messages, #phones, #premium, #senders, #stats, #subaccounts, #templates

Constructor Details

#initialize(username:, password:, **opts) ⇒ ClientCredentials

Returns a new instance of ClientCredentials.



5
6
7
# File 'lib/serwersms/client_credentials.rb', line 5

def initialize(username:, password:, **opts)
  @http = Http::HttpCredentials.new(username: username, password: password, **opts)
end

Instance Method Details

#call(path, params = {}) ⇒ Object



9
10
11
# File 'lib/serwersms/client_credentials.rb', line 9

def call(path, params = {})
  @http.call(path, params)
end