Class: PlanMyStuff::Issue::PageInfo
- Inherits:
-
Data
- Object
- Data
- PlanMyStuff::Issue::PageInfo
- Defined in:
- lib/plan_my_stuff/issue.rb
Overview
Value object returned by Issue.list_page_info: the fetched issues plus pagination metadata read from the Link header of the list_issues response. :total_pages is intentionally absent – GitHub’s issues endpoint is cursor-paginated and never advertises rel=“last”.
Instance Attribute Summary collapse
-
#has_next ⇒ Object
(also: #has_next?)
readonly
Returns the value of attribute has_next.
-
#has_prev ⇒ Object
(also: #has_prev?)
readonly
Returns the value of attribute has_prev.
-
#issues ⇒ Object
readonly
Returns the value of attribute issues.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#per_page ⇒ Object
readonly
Returns the value of attribute per_page.
Instance Attribute Details
#has_next ⇒ Object (readonly) Also known as: has_next?
Returns the value of attribute has_next
22 23 24 |
# File 'lib/plan_my_stuff/issue.rb', line 22 def has_next @has_next end |
#has_prev ⇒ Object (readonly) Also known as: has_prev?
Returns the value of attribute has_prev
22 23 24 |
# File 'lib/plan_my_stuff/issue.rb', line 22 def has_prev @has_prev end |
#issues ⇒ Object (readonly)
Returns the value of attribute issues
22 23 24 25 |
# File 'lib/plan_my_stuff/issue.rb', line 22 PageInfo = Data.define(:issues, :page, :per_page, :has_next, :has_prev) do alias_method :has_next?, :has_next alias_method :has_prev?, :has_prev end |
#page ⇒ Object (readonly)
Returns the value of attribute page
22 23 24 25 |
# File 'lib/plan_my_stuff/issue.rb', line 22 PageInfo = Data.define(:issues, :page, :per_page, :has_next, :has_prev) do alias_method :has_next?, :has_next alias_method :has_prev?, :has_prev end |
#per_page ⇒ Object (readonly)
Returns the value of attribute per_page
22 23 24 25 |
# File 'lib/plan_my_stuff/issue.rb', line 22 PageInfo = Data.define(:issues, :page, :per_page, :has_next, :has_prev) do alias_method :has_next?, :has_next alias_method :has_prev?, :has_prev end |