Class: SmswayApi::Message::Sms
- Inherits:
-
SmswayApi::Message
- Object
- SmswayApi::Message
- SmswayApi::Message::Sms
- Defined in:
- lib/smsway_api/message/sms.rb
Constant Summary
Constants inherited from SmswayApi::Message
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
Attributes inherited from SmswayApi::Message
Instance Method Summary collapse
- #build(xml, start_index = 0) ⇒ Object
-
#initialize(message = nil) ⇒ Sms
constructor
A new instance of Sms.
Methods inherited from SmswayApi::Message
Constructor Details
#initialize(message = nil) ⇒ Sms
Returns a new instance of Sms.
5 6 7 8 |
# File 'lib/smsway_api/message/sms.rb', line 5 def initialize(= nil) super(:sms) @message = end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/smsway_api/message/sms.rb', line 3 def @message end |
Instance Method Details
#build(xml, start_index = 0) ⇒ Object
10 11 12 13 14 |
# File 'lib/smsway_api/message/sms.rb', line 10 def build(xml, start_index = 0) super do |xml| xml.text @message end end |