Class: Svix::Ordering
- Inherits:
-
Object
- Object
- Svix::Ordering
- Defined in:
- lib/svix/models/ordering.rb
Overview
Defines the ordering in a listing of results.
Constant Summary collapse
- ASCENDING =
"ascending".freeze
- DESCENDING =
"descending".freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value) ⇒ Ordering
constructor
A new instance of Ordering.
- #serialize ⇒ Object
Constructor Details
Class Method Details
.all_vars ⇒ Object
9 10 11 |
# File 'lib/svix/models/ordering.rb', line 9 def self.all_vars @all_vars ||= [ASCENDING, DESCENDING].freeze end |
Instance Method Details
#serialize ⇒ Object
26 27 28 |
# File 'lib/svix/models/ordering.rb', line 26 def serialize @value end |