Class: HookBridge::ListPullEndpointsResponse
- Inherits:
-
Object
- Object
- HookBridge::ListPullEndpointsResponse
- Defined in:
- lib/hookbridge/types.rb
Instance Attribute Summary collapse
-
#endpoints ⇒ Object
readonly
Returns the value of attribute endpoints.
-
#has_more ⇒ Object
readonly
Returns the value of attribute has_more.
-
#next_cursor ⇒ Object
readonly
Returns the value of attribute next_cursor.
Instance Method Summary collapse
-
#initialize(data) ⇒ ListPullEndpointsResponse
constructor
A new instance of ListPullEndpointsResponse.
Constructor Details
#initialize(data) ⇒ ListPullEndpointsResponse
Returns a new instance of ListPullEndpointsResponse.
398 399 400 401 402 |
# File 'lib/hookbridge/types.rb', line 398 def initialize(data) @endpoints = (data["data"] || data || []).map { |entry| PullEndpointSummary.new(entry) } @has_more = !data["next_cursor"].nil? && data["next_cursor"] != "" @next_cursor = data["next_cursor"] end |
Instance Attribute Details
#endpoints ⇒ Object (readonly)
Returns the value of attribute endpoints.
396 397 398 |
# File 'lib/hookbridge/types.rb', line 396 def endpoints @endpoints end |
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
396 397 398 |
# File 'lib/hookbridge/types.rb', line 396 def has_more @has_more end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
396 397 398 |
# File 'lib/hookbridge/types.rb', line 396 def next_cursor @next_cursor end |