Class: Google::Apis::TasksV1::Task::Link
- Inherits:
-
Object
- Object
- Google::Apis::TasksV1::Task::Link
- 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
-
#description ⇒ String
The description (might be empty).
-
#link ⇒ String
The URL.
-
#type ⇒ String
Type of the link, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Link
constructor
A new instance of Link.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Link
Returns a new instance of Link.
270 271 272 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 270 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description (might be empty).
Corresponds to the JSON property description
258 259 260 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 258 def description @description end |
#link ⇒ String
The URL.
Corresponds to the JSON property link
263 264 265 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 263 def link @link end |
#type ⇒ String
Type of the link, e.g. "email", "generic", "chat_message", "keep_note".
Corresponds to the JSON property type
268 269 270 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 268 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
275 276 277 278 279 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 275 def update!(**args) @description = args[:description] if args.key?(:description) @link = args[:link] if args.key?(:link) @type = args[:type] if args.key?(:type) end |