Class: Sms
- Inherits:
-
Object
- Object
- Sms
- Defined in:
- lib/smster/sms.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Clickatell, Nexmo, SmsUslugi, Smsru
Constant Summary collapse
- STATUSES =
Codes
{ created: 0, sent: 1, delivered: 2, failed: 3 }
Instance Attribute Summary collapse
-
#api_message_id ⇒ Object
Returns the value of attribute api_message_id.
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#cost ⇒ Object
Returns the value of attribute cost.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_message ⇒ Object
Returns the value of attribute status_message.
-
#text ⇒ Object
Returns the value of attribute text.
-
#to ⇒ Object
Returns the value of attribute to.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Sms
constructor
A new instance of Sms.
Constructor Details
Instance Attribute Details
#api_message_id ⇒ Object
Returns the value of attribute api_message_id.
2 3 4 |
# File 'lib/smster/sms.rb', line 2 def @api_message_id end |
#balance ⇒ Object
Returns the value of attribute balance.
2 3 4 |
# File 'lib/smster/sms.rb', line 2 def balance @balance end |
#cost ⇒ Object
Returns the value of attribute cost.
2 3 4 |
# File 'lib/smster/sms.rb', line 2 def cost @cost end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/smster/sms.rb', line 2 def name @name end |
#status ⇒ Object
Returns the value of attribute status.
2 3 4 |
# File 'lib/smster/sms.rb', line 2 def status @status end |
#status_message ⇒ Object
Returns the value of attribute status_message.
2 3 4 |
# File 'lib/smster/sms.rb', line 2 def @status_message end |
#text ⇒ Object
Returns the value of attribute text.
2 3 4 |
# File 'lib/smster/sms.rb', line 2 def text @text end |
#to ⇒ Object
Returns the value of attribute to.
2 3 4 |
# File 'lib/smster/sms.rb', line 2 def to @to end |
#type ⇒ Object
Returns the value of attribute type.
2 3 4 |
# File 'lib/smster/sms.rb', line 2 def type @type end |
Class Method Details
.send_sms(attrs = {}) ⇒ Object
Etc.
10 11 12 |
# File 'lib/smster/sms.rb', line 10 def self.send_sms(attrs = {}) new(attrs).send_sms end |