Class: CtmSms::SendSms
- Inherits:
-
Object
- Object
- CtmSms::SendSms
- Defined in:
- lib/ctm_sms.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(message, to) ⇒ SendSms
constructor
A new instance of SendSms.
- #send_sms ⇒ Object
Constructor Details
#initialize(message, to) ⇒ SendSms
Returns a new instance of SendSms.
17 18 19 20 21 |
# File 'lib/ctm_sms.rb', line 17 def initialize(, to) = @to = to @client = CtmSms::CtmClient.new end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
15 16 17 |
# File 'lib/ctm_sms.rb', line 15 def client @client end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
15 16 17 |
# File 'lib/ctm_sms.rb', line 15 def end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
15 16 17 |
# File 'lib/ctm_sms.rb', line 15 def to @to end |
Instance Method Details
#send_sms ⇒ Object
23 24 25 |
# File 'lib/ctm_sms.rb', line 23 def send_sms client.send_sms params end |