Class: Google::Apis::TasksV1::Task::Link

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) ⇒ Link

Returns a new instance of Link.



161
162
163
# File 'generated/google/apis/tasks_v1/classes.rb', line 161

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

Instance Attribute Details

#descriptionString

The description. In HTML speak: Everything between and . Corresponds to the JSON property description

Returns:

  • (String)


149
150
151
# File 'generated/google/apis/tasks_v1/classes.rb', line 149

def description
  @description
end

The URL. Corresponds to the JSON property link

Returns:

  • (String)


154
155
156
# File 'generated/google/apis/tasks_v1/classes.rb', line 154

def link
  @link
end

#typeString

Type of the link, e.g. "email". Corresponds to the JSON property type

Returns:

  • (String)


159
160
161
# File 'generated/google/apis/tasks_v1/classes.rb', line 159

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



166
167
168
169
170
# File 'generated/google/apis/tasks_v1/classes.rb', line 166

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