Class: HookBridge::InboundRejectionsResponse
- Inherits:
-
Object
- Object
- HookBridge::InboundRejectionsResponse
- Defined in:
- lib/hookbridge/types.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#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) ⇒ InboundRejectionsResponse
constructor
A new instance of InboundRejectionsResponse.
Constructor Details
#initialize(data) ⇒ InboundRejectionsResponse
Returns a new instance of InboundRejectionsResponse.
468 469 470 471 472 |
# File 'lib/hookbridge/types.rb', line 468 def initialize(data) @entries = (data["data"] || data || []).map { |entry| InboundRejection.new(entry) } @has_more = data["has_more"] || false @next_cursor = data["next_cursor"] end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
466 467 468 |
# File 'lib/hookbridge/types.rb', line 466 def entries @entries end |
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
466 467 468 |
# File 'lib/hookbridge/types.rb', line 466 def has_more @has_more end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
466 467 468 |
# File 'lib/hookbridge/types.rb', line 466 def next_cursor @next_cursor end |