Class: HookBridge::ListEndpointsResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/hookbridge/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#endpointsObject (readonly)

Returns the value of attribute endpoints.



182
183
184
# File 'lib/hookbridge/types.rb', line 182

def endpoints
  @endpoints
end

#has_moreObject (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_cursorObject (readonly)

Returns the value of attribute next_cursor.



182
183
184
# File 'lib/hookbridge/types.rb', line 182

def next_cursor
  @next_cursor
end