Class: Google::Apis::TasksV1::TaskList

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TaskList

Returns a new instance of TaskList.



209
210
211
# File 'generated/google/apis/tasks_v1/classes.rb', line 209

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


181
182
183
# File 'generated/google/apis/tasks_v1/classes.rb', line 181

def etag
  @etag
end

#idString

Task list identifier. Corresponds to the JSON property id

Returns:

  • (String)


186
187
188
# File 'generated/google/apis/tasks_v1/classes.rb', line 186

def id
  @id
end

#kindString

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

Returns:

  • (String)


191
192
193
# File 'generated/google/apis/tasks_v1/classes.rb', line 191

def kind
  @kind
end

URL pointing to this task list. Used to retrieve, update, or delete this task list. Corresponds to the JSON property selfLink

Returns:

  • (String)


197
198
199
# File 'generated/google/apis/tasks_v1/classes.rb', line 197

def self_link
  @self_link
end

#titleString

Title of the task list. Corresponds to the JSON property title

Returns:

  • (String)


202
203
204
# File 'generated/google/apis/tasks_v1/classes.rb', line 202

def title
  @title
end

#updatedString

Last modification time of the task list (as a RFC 3339 timestamp). Corresponds to the JSON property updated

Returns:

  • (String)


207
208
209
# File 'generated/google/apis/tasks_v1/classes.rb', line 207

def updated
  @updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



214
215
216
217
218
219
220
221
# File 'generated/google/apis/tasks_v1/classes.rb', line 214

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @self_link = args[:self_link] if args.key?(:self_link)
  @title = args[:title] if args.key?(:title)
  @updated = args[:updated] if args.key?(:updated)
end