Class: Rerout::Models::ListLinksResult
- Inherits:
-
Object
- Object
- Rerout::Models::ListLinksResult
- Defined in:
- lib/rerout/models.rb
Overview
Paginated list of links.
Instance Attribute Summary collapse
-
#links ⇒ Object
readonly
Returns the value of attribute links.
-
#next_cursor ⇒ Object
readonly
Returns the value of attribute next_cursor.
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(links:, next_cursor:) ⇒ ListLinksResult
constructor
A new instance of ListLinksResult.
- #to_h ⇒ Object
Constructor Details
#initialize(links:, next_cursor:) ⇒ ListLinksResult
Returns a new instance of ListLinksResult.
249 250 251 252 253 |
# File 'lib/rerout/models.rb', line 249 def initialize(links:, next_cursor:) @links = links.freeze @next_cursor = next_cursor freeze end |
Instance Attribute Details
#links ⇒ Object (readonly)
Returns the value of attribute links.
247 248 249 |
# File 'lib/rerout/models.rb', line 247 def links @links end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
247 248 249 |
# File 'lib/rerout/models.rb', line 247 def next_cursor @next_cursor end |
Class Method Details
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
266 267 268 |
# File 'lib/rerout/models.rb', line 266 def ==(other) other.is_a?(ListLinksResult) && other.to_h == to_h end |
#hash ⇒ Object
271 272 273 |
# File 'lib/rerout/models.rb', line 271 def hash to_h.hash end |
#to_h ⇒ Object
262 263 264 |
# File 'lib/rerout/models.rb', line 262 def to_h { links: links.map(&:to_h), next_cursor: next_cursor } end |