Class: ServiceStack::QueryBase

Inherits:
Object
  • Object
show all
Includes:
DTO
Defined in:
lib/servicestack/types.rb

Overview

The query params supported by all AutoQuery Requests.

Direct Known Subclasses

QueryData, QueryDb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from DTO

#==, included, #initialize, #inspect, #to_hash, #to_json

Instance Attribute Details

#fieldsObject

Returns the value of attribute fields.



120
121
122
# File 'lib/servicestack/types.rb', line 120

def fields
  @fields
end

#includeObject

Returns the value of attribute include.



120
121
122
# File 'lib/servicestack/types.rb', line 120

def include
  @include
end

#metaObject

Returns the value of attribute meta.



120
121
122
# File 'lib/servicestack/types.rb', line 120

def meta
  @meta
end

#order_byObject

Returns the value of attribute order_by.



120
121
122
# File 'lib/servicestack/types.rb', line 120

def order_by
  @order_by
end

#order_by_descObject

Returns the value of attribute order_by_desc.



120
121
122
# File 'lib/servicestack/types.rb', line 120

def order_by_desc
  @order_by_desc
end

#skipObject

Returns the value of attribute skip.



120
121
122
# File 'lib/servicestack/types.rb', line 120

def skip
  @skip
end

#takeObject

Returns the value of attribute take.



120
121
122
# File 'lib/servicestack/types.rb', line 120

def take
  @take
end

Class Method Details

.propertiesObject



122
123
124
125
126
127
128
129
130
131
132
# File 'lib/servicestack/types.rb', line 122

def self.properties
  {
    skip: { name: 'skip' },
    take: { name: 'take' },
    order_by: { name: 'orderBy' },
    order_by_desc: { name: 'orderByDesc' },
    include: { name: 'include' },
    fields: { name: 'fields' },
    meta: { name: 'meta' },
  }
end