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

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

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

Returns a new instance of Setting.



1657
1658
1659
# File 'generated/google/apis/calendar_v3/classes.rb', line 1657

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


1639
1640
1641
# File 'generated/google/apis/calendar_v3/classes.rb', line 1639

def etag
  @etag
end

#idString

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

Returns:

  • (String)


1644
1645
1646
# File 'generated/google/apis/calendar_v3/classes.rb', line 1644

def id
  @id
end

#kindString

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

Returns:

  • (String)


1649
1650
1651
# File 'generated/google/apis/calendar_v3/classes.rb', line 1649

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)


1655
1656
1657
# File 'generated/google/apis/calendar_v3/classes.rb', line 1655

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1662
1663
1664
1665
1666
1667
# File 'generated/google/apis/calendar_v3/classes.rb', line 1662

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