Class: HookBridge::ListenInboundEndpointResponse
- Inherits:
-
Object
- Object
- HookBridge::ListenInboundEndpointResponse
- Defined in:
- lib/hookbridge/types.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#next_cursor ⇒ Object
readonly
Returns the value of attribute next_cursor.
Instance Method Summary collapse
-
#initialize(data) ⇒ ListenInboundEndpointResponse
constructor
A new instance of ListenInboundEndpointResponse.
Constructor Details
#initialize(data) ⇒ ListenInboundEndpointResponse
Returns a new instance of ListenInboundEndpointResponse.
360 361 362 363 |
# File 'lib/hookbridge/types.rb', line 360 def initialize(data) @messages = (data["data"] || []).map { |entry| ListenMessage.new(entry) } @next_cursor = data.dig("meta", "next_cursor") end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
358 359 360 |
# File 'lib/hookbridge/types.rb', line 358 def @messages end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
358 359 360 |
# File 'lib/hookbridge/types.rb', line 358 def next_cursor @next_cursor end |