class DynamicsCRM::Metadata::AttributeQueryExpression
Attributes
criteria[RW]
properties[RW]
Public Class Methods
new(criteria, properties)
click to toggle source
# File lib/dynamics_crm/metadata/attribute_query_expression.rb, line 7 def initialize(criteria, properties) @criteria = criteria @properties = properties end
Public Instance Methods
to_xml(options={})
click to toggle source
# File lib/dynamics_crm/metadata/attribute_query_expression.rb, line 12 def to_xml(options={}) namespace = options[:namespace] ? options[:namespace] : 'b' xml = %Q{<#{namespace}:AttributeQuery>} xml << @criteria.to_xml({namespace: namespace}) if @criteria xml << @properties.to_xml({namespace: namespace}) if @properties xml << %Q{</#{namespace}:AttributeQuery>} return xml end