Class: HookBridge::ListEndpointsResponse
- Inherits:
-
Object
- Object
- HookBridge::ListEndpointsResponse
- 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) ⇒ ListEndpointsResponse
constructor
A new instance of ListEndpointsResponse.
Constructor Details
#initialize(data) ⇒ ListEndpointsResponse
Returns a new instance of ListEndpointsResponse.
184 185 186 187 188 |
# File 'lib/hookbridge/types.rb', line 184 def initialize(data) @endpoints = (data["data"] || data || []).map { |entry| EndpointSummary.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.
182 183 184 |
# File 'lib/hookbridge/types.rb', line 182 def endpoints @endpoints end |
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
182 183 184 |
# File 'lib/hookbridge/types.rb', line 182 def has_more @has_more end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
182 183 184 |
# File 'lib/hookbridge/types.rb', line 182 def next_cursor @next_cursor end |