Class: Quickeebooks::Shared::Service::Sort
- Inherits:
-
Object
- Object
- Quickeebooks::Shared::Service::Sort
- Defined in:
- lib/quickeebooks/shared/service/sort.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
-
#how ⇒ Object
Returns the value of attribute how.
Instance Method Summary collapse
-
#initialize(field, how) ⇒ Sort
constructor
A new instance of Sort.
- #to_s ⇒ Object
- #to_xml ⇒ Object
Constructor Details
#initialize(field, how) ⇒ Sort
Returns a new instance of Sort.
7 8 9 10 |
# File 'lib/quickeebooks/shared/service/sort.rb', line 7 def initialize(field, how) @field = field @how = how end |
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field.
5 6 7 |
# File 'lib/quickeebooks/shared/service/sort.rb', line 5 def field @field end |
#how ⇒ Object
Returns the value of attribute how.
5 6 7 |
# File 'lib/quickeebooks/shared/service/sort.rb', line 5 def how @how end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/quickeebooks/shared/service/sort.rb', line 12 def to_s "#{field} #{how}" end |
#to_xml ⇒ Object
16 17 18 |
# File 'lib/quickeebooks/shared/service/sort.rb', line 16 def to_xml "<SortByColumn sortOrder=\"#{how}\">#{field}</SortByColumn>" end |