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.
480 481 482 483 484 |
# File 'lib/hookbridge/types.rb', line 480 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.
478 479 480 |
# File 'lib/hookbridge/types.rb', line 478 def entries @entries end |
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
478 479 480 |
# File 'lib/hookbridge/types.rb', line 478 def has_more @has_more end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
478 479 480 |
# File 'lib/hookbridge/types.rb', line 478 def next_cursor @next_cursor end |