Class: Smslist::Client

Inherits:
Object
  • Object
show all
Includes:
Authentication, Balance, Sms, State, Request, Response
Defined in:
lib/smslist/client.rb,
lib/smslist/client/sms.rb,
lib/smslist/client/state.rb,
lib/smslist/client/balance.rb

Defined Under Namespace

Modules: Balance, Sms, State

Constant Summary

Constants included from State

State::STATE_ERRORS

Instance Method Summary collapse

Methods included from State

#state

Methods included from Sms

#send_sms

Methods included from Balance

#balance, #remaining_sms

Methods included from Response

#parse_xml

Methods included from Request

#build_xml_body, #post

Methods included from Authentication

#authentication

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



13
14
15
16
17
18
19
# File 'lib/smslist/client.rb', line 13

def initialize(options = {})
  options = Smslist.options.merge(options)

  Configuration::VALID_OPTIONS_KEYS.each do |key|
    self.send("#{key}=", options[key])
  end
end