Class: PostProxy::PaginatedResponse

Inherits:
ListResponse show all
Defined in:
lib/postproxy/types.rb

Instance Attribute Summary collapse

Attributes inherited from ListResponse

#data

Instance Method Summary collapse

Constructor Details

#initialize(data:, total:, page:, per_page:) ⇒ PaginatedResponse

Returns a new instance of PaginatedResponse.



271
272
273
274
275
276
# File 'lib/postproxy/types.rb', line 271

def initialize(data:, total:, page:, per_page:)
  super(data: data)
  @total = total
  @page = page
  @per_page = per_page
end

Instance Attribute Details

#pageObject (readonly)

Returns the value of attribute page.



269
270
271
# File 'lib/postproxy/types.rb', line 269

def page
  @page
end

#per_pageObject (readonly)

Returns the value of attribute per_page.



269
270
271
# File 'lib/postproxy/types.rb', line 269

def per_page
  @per_page
end

#totalObject (readonly)

Returns the value of attribute total.



269
270
271
# File 'lib/postproxy/types.rb', line 269

def total
  @total
end