Class: HookBridge::ListInboundEndpointsResponse
- Inherits:
-
Object
- Object
- HookBridge::ListInboundEndpointsResponse
- 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) ⇒ ListInboundEndpointsResponse
constructor
A new instance of ListInboundEndpointsResponse.
Constructor Details
#initialize(data) ⇒ ListInboundEndpointsResponse
Returns a new instance of ListInboundEndpointsResponse.
332 333 334 335 336 |
# File 'lib/hookbridge/types.rb', line 332 def initialize(data) @endpoints = (data["data"] || data || []).map { |entry| InboundEndpointSummary.new(entry) } @has_more = data["has_more"] || false @next_cursor = data["next_cursor"] end |
Instance Attribute Details
#endpoints ⇒ Object (readonly)
Returns the value of attribute endpoints.
330 331 332 |
# File 'lib/hookbridge/types.rb', line 330 def endpoints @endpoints end |
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
330 331 332 |
# File 'lib/hookbridge/types.rb', line 330 def has_more @has_more end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
330 331 332 |
# File 'lib/hookbridge/types.rb', line 330 def next_cursor @next_cursor end |