Class: Pokepay::Response::Pagination

Inherits:
Object
  • Object
show all
Defined in:
lib/pokepay_partner_ruby_sdk/response/pagination.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ Pagination

Returns a new instance of Pagination.



6
7
8
9
10
11
12
# File 'lib/pokepay_partner_ruby_sdk/response/pagination.rb', line 6

def initialize(row)
  @current = row["current"]
  @per_page = row["per_page"]
  @max_page = row["max_page"]
  @has_prev = row["has_prev"]
  @has_next = row["has_next"]
end

Instance Attribute Details

#currentObject (readonly)

Returns the value of attribute current.



13
14
15
# File 'lib/pokepay_partner_ruby_sdk/response/pagination.rb', line 13

def current
  @current
end

#has_nextObject (readonly)

Returns the value of attribute has_next.



17
18
19
# File 'lib/pokepay_partner_ruby_sdk/response/pagination.rb', line 17

def has_next
  @has_next
end

#has_prevObject (readonly)

Returns the value of attribute has_prev.



16
17
18
# File 'lib/pokepay_partner_ruby_sdk/response/pagination.rb', line 16

def has_prev
  @has_prev
end

#max_pageObject (readonly)

Returns the value of attribute max_page.



15
16
17
# File 'lib/pokepay_partner_ruby_sdk/response/pagination.rb', line 15

def max_page
  @max_page
end

#per_pageObject (readonly)

Returns the value of attribute per_page.



14
15
16
# File 'lib/pokepay_partner_ruby_sdk/response/pagination.rb', line 14

def per_page
  @per_page
end