Class: Google::Apis::CalendarV3::ColorDefinition

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

Returns a new instance of ColorDefinition.



550
551
552
# File 'generated/google/apis/calendar_v3/classes.rb', line 550

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

Instance Attribute Details

#backgroundString

The background color associated with this color definition. Corresponds to the JSON property background

Returns:

  • (String)


542
543
544
# File 'generated/google/apis/calendar_v3/classes.rb', line 542

def background
  @background
end

#foregroundString

The foreground color that can be used to write on top of a background with ' background' color. Corresponds to the JSON property foreground

Returns:

  • (String)


548
549
550
# File 'generated/google/apis/calendar_v3/classes.rb', line 548

def foreground
  @foreground
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



555
556
557
558
# File 'generated/google/apis/calendar_v3/classes.rb', line 555

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