Class: HookBridge::ListPullEndpointsResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ListPullEndpointsResponse

Returns a new instance of ListPullEndpointsResponse.



398
399
400
401
402
# File 'lib/hookbridge/types.rb', line 398

def initialize(data)
  @endpoints = (data["data"] || data || []).map { |entry| PullEndpointSummary.new(entry) }
  @has_more = !data["next_cursor"].nil? && data["next_cursor"] != ""
  @next_cursor = data["next_cursor"]
end

Instance Attribute Details

#endpointsObject (readonly)

Returns the value of attribute endpoints.



396
397
398
# File 'lib/hookbridge/types.rb', line 396

def endpoints
  @endpoints
end

#has_moreObject (readonly)

Returns the value of attribute has_more.



396
397
398
# File 'lib/hookbridge/types.rb', line 396

def has_more
  @has_more
end

#next_cursorObject (readonly)

Returns the value of attribute next_cursor.



396
397
398
# File 'lib/hookbridge/types.rb', line 396

def next_cursor
  @next_cursor
end