Class: Zenvia::Sms

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/zenvia/sms.rb

Constant Summary

Constants included from Base

Base::ZENVIA_URL

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, cel_phone) ⇒ Sms

Returns a new instance of Sms.



7
8
9
10
# File 'lib/zenvia/sms.rb', line 7

def initialize(msg, cel_phone)
  @msg       = msg
  @cel_phone = cel_phone
end

Instance Attribute Details

#cel_phoneObject

Returns the value of attribute cel_phone.



5
6
7
# File 'lib/zenvia/sms.rb', line 5

def cel_phone
  @cel_phone
end

#msgObject

Returns the value of attribute msg.



5
6
7
# File 'lib/zenvia/sms.rb', line 5

def msg
  @msg
end

Instance Method Details

#forwardObject



12
13
14
# File 'lib/zenvia/sms.rb', line 12

def forward
  send_to_zenvia(@msg, @cel_phone)
end