Class: Google::Apis::CalendarV3::Event::Source

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

Overview

Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Source

Returns a new instance of Source



1229
1230
1231
# File 'generated/google/apis/calendar_v3/classes.rb', line 1229

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

Instance Attribute Details

#titleString

Title of the source; for example a title of a web page or an email subject. Corresponds to the JSON property title

Returns:

  • (String)


1222
1223
1224
# File 'generated/google/apis/calendar_v3/classes.rb', line 1222

def title
  @title
end

#urlString

URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS. Corresponds to the JSON property url

Returns:

  • (String)


1227
1228
1229
# File 'generated/google/apis/calendar_v3/classes.rb', line 1227

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1234
1235
1236
1237
# File 'generated/google/apis/calendar_v3/classes.rb', line 1234

def update!(**args)
  @title = args[:title] if args.key?(:title)
  @url = args[:url] if args.key?(:url)
end