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

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

Returns a new instance of ColorDefinition.



566
567
568
# File 'lib/google/apis/calendar_v3/classes.rb', line 566

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)


558
559
560
# File 'lib/google/apis/calendar_v3/classes.rb', line 558

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)


564
565
566
# File 'lib/google/apis/calendar_v3/classes.rb', line 564

def foreground
  @foreground
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



571
572
573
574
# File 'lib/google/apis/calendar_v3/classes.rb', line 571

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