Class: Mws::Apis::Feeds::Shipping::Override
- Inherits:
-
Object
- Object
- Mws::Apis::Feeds::Shipping::Override
- Defined in:
- lib/mws/apis/feeds/shipping.rb
Constant Summary collapse
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#option ⇒ Object
readonly
Returns the value of attribute option.
Instance Method Summary collapse
-
#initialize(option, type, amount) ⇒ Override
constructor
A new instance of Override.
- #to_xml(name = 'ShippingOverride', parent = nil) ⇒ Object
Constructor Details
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
103 104 105 |
# File 'lib/mws/apis/feeds/shipping.rb', line 103 def amount @amount end |
#option ⇒ Object (readonly)
Returns the value of attribute option.
103 104 105 |
# File 'lib/mws/apis/feeds/shipping.rb', line 103 def option @option end |
Instance Method Details
#to_xml(name = 'ShippingOverride', parent = nil) ⇒ Object
113 114 115 116 117 118 119 |
# File 'lib/mws/apis/feeds/shipping.rb', line 113 def to_xml(name='ShippingOverride', parent=nil) Mws::Serializer.tree name, parent do |xml| xml.ShipOption @option xml.Type @type.val @amount.to_xml 'ShipAmount', xml end end |