Class: Google::Apis::TasksV1::Task::Link
- Inherits:
-
Object
- Object
- Google::Apis::TasksV1::Task::Link
- 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
-
#description ⇒ String
The description.
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Link
Returns a new instance of Link
158 159 160 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 158 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description. In HTML speak: Everything between and .
Corresponds to the JSON property description
146 147 148 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 146 def description @description end |
#link ⇒ String
The URL.
Corresponds to the JSON property link
151 152 153 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 151 def link @link end |
#type ⇒ String
Type of the link, e.g. "email".
Corresponds to the JSON property type
156 157 158 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 156 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
163 164 165 166 167 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 163 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 |