Class: Rews::SortOrder
- Inherits:
-
Object
- Object
- Rews::SortOrder
- Defined in:
- lib/rews/sort_order.rb
Overview
models SortOrder used in Folder::BaseFolderId.find_*
methods
takes sort_orders written in Ruby s-expressions and outputs EWS SortOrder XML e.g.
[["item:DateTimeReceived", "Ascending"], ["item:Size", "Descending"]]
Defined Under Namespace
Modules: Xml
Instance Attribute Summary collapse
-
#expr ⇒ Object
readonly
Returns the value of attribute expr.
Instance Method Summary collapse
-
#initialize(expr) ⇒ SortOrder
constructor
A new instance of SortOrder.
- #inspect ⇒ Object
- #to_xml ⇒ Object
Constructor Details
#initialize(expr) ⇒ SortOrder
Returns a new instance of SortOrder.
11 12 13 |
# File 'lib/rews/sort_order.rb', line 11 def initialize(expr) @expr=expr end |
Instance Attribute Details
#expr ⇒ Object (readonly)
Returns the value of attribute expr.
9 10 11 |
# File 'lib/rews/sort_order.rb', line 9 def expr @expr end |
Instance Method Details
#inspect ⇒ Object
15 16 17 |
# File 'lib/rews/sort_order.rb', line 15 def inspect "#<#{self.class} @expr=#{@expr.inspect}>" end |
#to_xml ⇒ Object
19 20 21 |
# File 'lib/rews/sort_order.rb', line 19 def to_xml Xml::write_sort_order(expr) end |