Class: HookBridge::PullLogsResponse
- Inherits:
-
Object
- Object
- HookBridge::PullLogsResponse
- 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) ⇒ PullLogsResponse
constructor
A new instance of PullLogsResponse.
Constructor Details
#initialize(data) ⇒ PullLogsResponse
Returns a new instance of PullLogsResponse.
436 437 438 439 440 |
# File 'lib/hookbridge/types.rb', line 436 def initialize(data) @entries = (data["data"] || data || []).map { |entry| PullLogEntry.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.
434 435 436 |
# File 'lib/hookbridge/types.rb', line 434 def entries @entries end |
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
434 435 436 |
# File 'lib/hookbridge/types.rb', line 434 def has_more @has_more end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
434 435 436 |
# File 'lib/hookbridge/types.rb', line 434 def next_cursor @next_cursor end |