Class: Zenvia::Sms
Constant Summary
Constants included from Base
Instance Attribute Summary collapse
-
#cel_phone ⇒ Object
Returns the value of attribute cel_phone.
-
#msg ⇒ Object
Returns the value of attribute msg.
Instance Method Summary collapse
- #forward ⇒ Object
-
#initialize(msg, cel_phone) ⇒ Sms
constructor
A new instance of Sms.
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_phone ⇒ Object
Returns the value of attribute cel_phone.
5 6 7 |
# File 'lib/zenvia/sms.rb', line 5 def cel_phone @cel_phone end |
#msg ⇒ Object
Returns the value of attribute msg.
5 6 7 |
# File 'lib/zenvia/sms.rb', line 5 def msg @msg end |
Instance Method Details
#forward ⇒ Object
12 13 14 |
# File 'lib/zenvia/sms.rb', line 12 def forward send_to_zenvia(@msg, @cel_phone) end |