Class: Google::Apis::CalendarV3::Setting
- Inherits:
-
Object
- Object
- Google::Apis::CalendarV3::Setting
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/calendar_v3/classes.rb,
lib/google/apis/calendar_v3/representations.rb,
lib/google/apis/calendar_v3/representations.rb
Instance Attribute Summary collapse
-
#etag ⇒ String
ETag of the resource.
-
#id ⇒ String
The id of the user setting.
-
#kind ⇒ String
Type of the resource ("calendar#setting").
-
#value ⇒ String
Value of the user setting.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Setting
constructor
A new instance of Setting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Setting
Returns a new instance of Setting.
2508 2509 2510 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2508 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
2490 2491 2492 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2490 def etag @etag end |
#id ⇒ String
The id of the user setting.
Corresponds to the JSON property id
2495 2496 2497 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2495 def id @id end |
#kind ⇒ String
Type of the resource ("calendar#setting").
Corresponds to the JSON property kind
2500 2501 2502 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2500 def kind @kind end |
#value ⇒ String
Value of the user setting. The format of the value depends on the ID of the
setting. It must always be a UTF-8 string of length up to 1024 characters.
Corresponds to the JSON property value
2506 2507 2508 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2506 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2513 2514 2515 2516 2517 2518 |
# File 'lib/google/apis/calendar_v3/classes.rb', line 2513 def update!(**args) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @value = args[:value] if args.key?(:value) end |