Module: SmsRu

Extended by:
Configurable
Defined in:
lib/sms_ru.rb,
lib/sms_ru/client.rb,
lib/sms_ru/configurable.rb,
lib/sms_ru/client/models.rb,
lib/sms_ru/client/api/sms.rb,
lib/sms_ru/client/models/requests/base.rb,
lib/sms_ru/client/models/responses/base.rb,
lib/sms_ru/client/models/requests/send_sms.rb,
lib/sms_ru/client/models/responses/send_sms.rb

Defined Under Namespace

Modules: Configurable Classes: Client

Constant Summary collapse

Requests =
Client::Models::Requests
Responses =
Client::Models::Responses

Constants included from Configurable

Configurable::CONFIGURATION_OPTIONS, Configurable::DEFAULTS_OPEN_TIMEOUT, Configurable::DEFAULTS_READ_TIMEOUT

Class Method Summary collapse

Methods included from Configurable

configure, options, same_options?, set_defaults

Class Method Details

.clientObject



12
13
14
15
16
# File 'lib/sms_ru.rb', line 12

def client
  return @client if defined?(@client) && @client.same_options?(options)

  @client = Client.new(options)
end