class DynamicsCRM::XML::Orders
Attributes
attribute_name[RW]
order_type[RW]
Public Class Methods
new()
click to toggle source
# File lib/dynamics_crm/xml/orders.rb, line 8 def initialize @order_type = 0 end
Public Instance Methods
to_hash()
click to toggle source
# File lib/dynamics_crm/xml/orders.rb, line 26 def to_hash { :attribute_name => attribute_name, :order_type => order_type } end
to_xml()
click to toggle source
Using Entity
vs entity causes the error: Value cannot be null. <Order> can be repeated multiple times orderType: 0 (Ascending) or 1 (Descending)
# File lib/dynamics_crm/xml/orders.rb, line 15 def to_xml %Q{ <a:Orders> <a:Order> <a:attributeName>#{attribute_name}</a:attributeName> <a:orderType>#{order_type}</a:orderType> </a:Order> </a:Orders> } end