Class: Hash

Inherits:
Object
  • Object
show all
Includes:
HashRecursiveMerge
Defined in:
lib/sms_service/services/message.rb,
lib/hash_recursive_merge.rb

Overview

Hash#################################################################

Instance Method Summary collapse

Methods included from HashRecursiveMerge

#rmerge, #rmerge!

Instance Method Details

#to_smsObject



43
44
45
46
47
48
49
# File 'lib/sms_service/services/message.rb', line 43

def to_sms
  unless empty?
   msg=self[:message]
   to=self[:to]
   SmsService::Service::SMS.new msg.to_s,to.to_s unless msg.empty? && to.emtp?
  end
end