Class: A2A::Operation::ListTasks::Response
- Inherits:
-
Object
- Object
- A2A::Operation::ListTasks::Response
- Defined in:
- lib/a2a/operation/list_tasks.rb
Instance Attribute Summary collapse
-
#next_page_token ⇒ Object
readonly
Returns the value of attribute next_page_token.
-
#page_size ⇒ Object
readonly
Returns the value of attribute page_size.
-
#tasks ⇒ Object
readonly
Returns the value of attribute tasks.
-
#total_size ⇒ Object
readonly
Returns the value of attribute total_size.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tasks:, next_page_token:, page_size:, total_size:) ⇒ Response
constructor
A new instance of Response.
- #to_h ⇒ Object
Constructor Details
#initialize(tasks:, next_page_token:, page_size:, total_size:) ⇒ Response
Returns a new instance of Response.
51 52 53 54 55 56 |
# File 'lib/a2a/operation/list_tasks.rb', line 51 def initialize(tasks:, next_page_token:, page_size:, total_size:) @tasks = tasks @next_page_token = next_page_token @page_size = page_size @total_size = total_size end |
Instance Attribute Details
#next_page_token ⇒ Object (readonly)
Returns the value of attribute next_page_token.
49 50 51 |
# File 'lib/a2a/operation/list_tasks.rb', line 49 def next_page_token @next_page_token end |
#page_size ⇒ Object (readonly)
Returns the value of attribute page_size.
49 50 51 |
# File 'lib/a2a/operation/list_tasks.rb', line 49 def page_size @page_size end |
#tasks ⇒ Object (readonly)
Returns the value of attribute tasks.
49 50 51 |
# File 'lib/a2a/operation/list_tasks.rb', line 49 def tasks @tasks end |
#total_size ⇒ Object (readonly)
Returns the value of attribute total_size.
49 50 51 |
# File 'lib/a2a/operation/list_tasks.rb', line 49 def total_size @total_size end |
Class Method Details
Instance Method Details
#to_h ⇒ Object
67 68 69 70 71 72 73 74 |
# File 'lib/a2a/operation/list_tasks.rb', line 67 def to_h { "tasks" => tasks.map(&:to_h), "nextPageToken" => next_page_token, "pageSize" => page_size, "totalSize" => total_size } end |