Class: GetStream::Generated::Models::PaginationParams

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/pagination_params.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ PaginationParams

Initialize with attributes



32
33
34
35
36
37
38
39
40
# File 'lib/getstream_ruby/generated/models/pagination_params.rb', line 32

def initialize(attributes = {})
  super(attributes)
  @id_gt = attributes[:id_gt] || attributes['id_gt'] || nil
  @id_gte = attributes[:id_gte] || attributes['id_gte'] || nil
  @id_lt = attributes[:id_lt] || attributes['id_lt'] || nil
  @id_lte = attributes[:id_lte] || attributes['id_lte'] || nil
  @limit = attributes[:limit] || attributes['limit'] || nil
  @offset = attributes[:offset] || attributes['offset'] || nil
end

Instance Attribute Details

#id_gtInteger

Returns:

  • (Integer)


14
15
16
# File 'lib/getstream_ruby/generated/models/pagination_params.rb', line 14

def id_gt
  @id_gt
end

#id_gteInteger

Returns:

  • (Integer)


17
18
19
# File 'lib/getstream_ruby/generated/models/pagination_params.rb', line 17

def id_gte
  @id_gte
end

#id_ltInteger

Returns:

  • (Integer)


20
21
22
# File 'lib/getstream_ruby/generated/models/pagination_params.rb', line 20

def id_lt
  @id_lt
end

#id_lteInteger

Returns:

  • (Integer)


23
24
25
# File 'lib/getstream_ruby/generated/models/pagination_params.rb', line 23

def id_lte
  @id_lte
end

#limitInteger

Returns:

  • (Integer)


26
27
28
# File 'lib/getstream_ruby/generated/models/pagination_params.rb', line 26

def limit
  @limit
end

#offsetInteger

Returns:

  • (Integer)


29
30
31
# File 'lib/getstream_ruby/generated/models/pagination_params.rb', line 29

def offset
  @offset
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



43
44
45
46
47
48
49
50
51
52
# File 'lib/getstream_ruby/generated/models/pagination_params.rb', line 43

def self.json_field_mappings
  {
    id_gt: 'id_gt',
    id_gte: 'id_gte',
    id_lt: 'id_lt',
    id_lte: 'id_lte',
    limit: 'limit',
    offset: 'offset'
  }
end