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.
448 449 450 451 452 |
# File 'lib/hookbridge/types.rb', line 448 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.
446 447 448 |
# File 'lib/hookbridge/types.rb', line 446 def entries @entries end |
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
446 447 448 |
# File 'lib/hookbridge/types.rb', line 446 def has_more @has_more end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
446 447 448 |
# File 'lib/hookbridge/types.rb', line 446 def next_cursor @next_cursor end |