Class: SentrySummary::Response
- Inherits:
-
Object
- Object
- SentrySummary::Response
- Defined in:
- lib/sentry-summary/sentry.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
- #cursor ⇒ Object
-
#initialize(body, next_link) ⇒ Response
constructor
A new instance of Response.
- #next? ⇒ Boolean
Constructor Details
#initialize(body, next_link) ⇒ Response
Returns a new instance of Response.
78 79 80 81 |
# File 'lib/sentry-summary/sentry.rb', line 78 def initialize(body, next_link) @body = body @next_link = next_link end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
76 77 78 |
# File 'lib/sentry-summary/sentry.rb', line 76 def body @body end |
Instance Method Details
#cursor ⇒ Object
83 84 85 |
# File 'lib/sentry-summary/sentry.rb', line 83 def cursor @next_link && @next_link.cursor end |
#next? ⇒ Boolean
87 88 89 |
# File 'lib/sentry-summary/sentry.rb', line 87 def next? !cursor.nil? end |