Class: SmswayApi::Message::WapPush

Inherits:
SmswayApi::Message show all
Defined in:
lib/smsway_api/message/wap_push.rb

Constant Summary

Constants inherited from SmswayApi::Message

TYPES

Instance Attribute Summary collapse

Attributes inherited from SmswayApi::Message

#recepients, #sender, #type

Instance Method Summary collapse

Methods inherited from SmswayApi::Message

#add_recipient

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

#urlObject

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