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