Class: HookBridge::AttemptsResponse
- Inherits:
-
Object
- Object
- HookBridge::AttemptsResponse
- Defined in:
- lib/hookbridge/types.rb
Instance Attribute Summary collapse
-
#attempts ⇒ Object
readonly
Returns the value of attribute attempts.
-
#has_more ⇒ Object
readonly
Returns the value of attribute has_more.
Instance Method Summary collapse
-
#initialize(data, meta = {}) ⇒ AttemptsResponse
constructor
A new instance of AttemptsResponse.
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, = {}) @attempts = (data || []).map { |entry| AttemptRecord.new(entry) } @has_more = ["has_more"] || false end |
Instance Attribute Details
#attempts ⇒ Object (readonly)
Returns the value of attribute attempts.
494 495 496 |
# File 'lib/hookbridge/types.rb', line 494 def attempts @attempts end |
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
494 495 496 |
# File 'lib/hookbridge/types.rb', line 494 def has_more @has_more end |