Class: Pokepay::Response::Pagination
- Inherits:
-
Object
- Object
- Pokepay::Response::Pagination
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/pagination.rb
Instance Attribute Summary collapse
-
#current ⇒ Object
readonly
Returns the value of attribute current.
-
#has_next ⇒ Object
readonly
Returns the value of attribute has_next.
-
#has_prev ⇒ Object
readonly
Returns the value of attribute has_prev.
-
#max_page ⇒ Object
readonly
Returns the value of attribute max_page.
-
#per_page ⇒ Object
readonly
Returns the value of attribute per_page.
Instance Method Summary collapse
-
#initialize(row) ⇒ Pagination
constructor
A new instance of Pagination.
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
#current ⇒ Object (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_next ⇒ Object (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_prev ⇒ Object (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_page ⇒ Object (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_page ⇒ Object (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 |