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.
344 345 346 347 348 |
# File 'lib/hookbridge/types.rb', line 344 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.
342 343 344 |
# File 'lib/hookbridge/types.rb', line 342 def endpoints @endpoints end |
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
342 343 344 |
# File 'lib/hookbridge/types.rb', line 342 def has_more @has_more end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
342 343 344 |
# File 'lib/hookbridge/types.rb', line 342 def next_cursor @next_cursor end |