Class: Google::Apis::CalendarV3::Setting

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Setting

Returns a new instance of Setting.



2305
2306
2307
# File 'lib/google/apis/calendar_v3/classes.rb', line 2305

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


2287
2288
2289
# File 'lib/google/apis/calendar_v3/classes.rb', line 2287

def etag
  @etag
end

#idString

The id of the user setting. Corresponds to the JSON property id

Returns:

  • (String)


2292
2293
2294
# File 'lib/google/apis/calendar_v3/classes.rb', line 2292

def id
  @id
end

#kindString

Type of the resource ("calendar#setting"). Corresponds to the JSON property kind

Returns:

  • (String)


2297
2298
2299
# File 'lib/google/apis/calendar_v3/classes.rb', line 2297

def kind
  @kind
end

#valueString

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

Returns:

  • (String)


2303
2304
2305
# File 'lib/google/apis/calendar_v3/classes.rb', line 2303

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2310
2311
2312
2313
2314
2315
# File 'lib/google/apis/calendar_v3/classes.rb', line 2310

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