Class: HookBridge::AttemptsResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, meta = {}) ⇒ AttemptsResponse

Returns a new instance of AttemptsResponse.



496
497
498
499
# File 'lib/hookbridge/types.rb', line 496

def initialize(data, meta = {})
  @attempts = (data || []).map { |entry| AttemptRecord.new(entry) }
  @has_more = meta["has_more"] || false
end

Instance Attribute Details

#attemptsObject (readonly)

Returns the value of attribute attempts.



494
495
496
# File 'lib/hookbridge/types.rb', line 494

def attempts
  @attempts
end

#has_moreObject (readonly)

Returns the value of attribute has_more.



494
495
496
# File 'lib/hookbridge/types.rb', line 494

def has_more
  @has_more
end