Class: Iloxx::Shipping::Request
- Inherits:
-
Object
- Object
- Iloxx::Shipping::Request
show all
- Defined in:
- lib/iloxx_shipping/request.rb
Instance Method Summary
collapse
Constructor Details
#initialize(attributes = {}) ⇒ Request
Returns a new instance of Request.
5
6
7
8
|
# File 'lib/iloxx_shipping/request.rb', line 5
def initialize(attributes = {})
@version = attributes[:version]
@auth = attributes[:auth]
end
|
Instance Method Details
#body ⇒ Object
10
11
12
|
# File 'lib/iloxx_shipping/request.rb', line 10
def body
end
|
#build! ⇒ Object
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/iloxx_shipping/request.rb', line 14
def build!
builder = Builder::XmlMarkup.new
builder.tns self.class::REQUEST_TYPE do |xml|
xml.tns :Version, @version
add_auth_to_xml(xml)
body(xml)
end
builder.target!
end
|