Class: SmsAero

Inherits:
Object
  • Object
show all
Extended by:
Evil::Client::DSL
Defined in:
lib/sms_aero.rb,
lib/sms_aero/models/sms.rb,
lib/sms_aero/models/answer.rb,
lib/sms_aero/models/tariff.rb,
lib/sms_aero/operations/send_sms.rb,
lib/sms_aero/operations/add_group.rb,
lib/sms_aero/operations/add_phone.rb,
lib/sms_aero/operations/check_sign.rb,
lib/sms_aero/operations/check_groups.rb,
lib/sms_aero/operations/check_status.rb,
lib/sms_aero/operations/check_tariff.rb,
lib/sms_aero/operations/delete_group.rb,
lib/sms_aero/operations/delete_phone.rb,
lib/sms_aero/operations/add_blacklist.rb,
lib/sms_aero/operations/check_balance.rb,
lib/sms_aero/operations/check_senders.rb,
lib/sms_aero/operations/check_sending.rb,
lib/sms_aero/operations/send_to_group.rb

Overview

Describes an SMS that can be send to either a phone or a group

Defined Under Namespace

Modules: Types Classes: Answer, Sms, Tariff

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object (private)



48
49
50
51
# File 'lib/sms_aero.rb', line 48

def method_missing(name, *args)
  op = operations[name.to_sym]
  op ? op.call(*args) : super
end