Class: Google::Apis::TasksV1::TaskLists

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/tasks_v1/classes.rb,
lib/google/apis/tasks_v1/representations.rb,
lib/google/apis/tasks_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TaskLists

Returns a new instance of TaskLists.



255
256
257
# File 'lib/google/apis/tasks_v1/classes.rb', line 255

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


238
239
240
# File 'lib/google/apis/tasks_v1/classes.rb', line 238

def etag
  @etag
end

#itemsArray<Google::Apis::TasksV1::TaskList>

Collection of task lists. Corresponds to the JSON property items



243
244
245
# File 'lib/google/apis/tasks_v1/classes.rb', line 243

def items
  @items
end

#kindString

Type of the resource. This is always "tasks#taskLists". Corresponds to the JSON property kind

Returns:

  • (String)


248
249
250
# File 'lib/google/apis/tasks_v1/classes.rb', line 248

def kind
  @kind
end

#next_page_tokenString

Token that can be used to request the next page of this result. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


253
254
255
# File 'lib/google/apis/tasks_v1/classes.rb', line 253

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



260
261
262
263
264
265
# File 'lib/google/apis/tasks_v1/classes.rb', line 260

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end