Class: Google::Apis::CalendarV3::Event::Source
- Inherits:
-
Object
- Object
- Google::Apis::CalendarV3::Event::Source
- 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
-
#title ⇒ String
Title of the source; for example a title of a web page or an email subject.
-
#url ⇒ String
URL of the source pointing to a resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Source
constructor
A new instance of Source.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Source
Returns a new instance of Source
1500 1501 1502 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 1500 def initialize(**args) update!(**args) end |
Instance Attribute Details
#title ⇒ String
Title of the source; for example a title of a web page or an email subject.
Corresponds to the JSON property title
1493 1494 1495 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 1493 def title @title end |
#url ⇒ String
URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
Corresponds to the JSON property url
1498 1499 1500 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 1498 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1505 1506 1507 1508 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 1505 def update!(**args) @title = args[:title] if args.key?(:title) @url = args[:url] if args.key?(:url) end |