Class: Etapper::API::SortOption
- Inherits:
-
Object
- Object
- Etapper::API::SortOption
- Defined in:
- lib/etapper/api/service.rb
Overview
Instance Attribute Summary collapse
-
#ascending ⇒ Object
Returns the value of attribute ascending.
-
#field ⇒ Object
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(ascending = nil, field = nil) ⇒ SortOption
constructor
A new instance of SortOption.
Constructor Details
#initialize(ascending = nil, field = nil) ⇒ SortOption
Returns a new instance of SortOption.
2206 2207 2208 2209 |
# File 'lib/etapper/api/service.rb', line 2206 def initialize(ascending = nil, field = nil) @ascending = ascending @field = field end |
Instance Attribute Details
#ascending ⇒ Object
Returns the value of attribute ascending.
2203 2204 2205 |
# File 'lib/etapper/api/service.rb', line 2203 def ascending @ascending end |
#field ⇒ Object
Returns the value of attribute field.
2204 2205 2206 |
# File 'lib/etapper/api/service.rb', line 2204 def field @field end |