Class: Google::Apis::LanguageV1beta2::XpsColorMapIntColor

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/representations.rb

Overview

RGB color and each channel is represented by an integer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsColorMapIntColor

Returns a new instance of XpsColorMapIntColor.



1630
1631
1632
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1630

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

Instance Attribute Details

#blueFixnum

The value should be in range of [0, 255]. Corresponds to the JSON property blue

Returns:

  • (Fixnum)


1618
1619
1620
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1618

def blue
  @blue
end

#greenFixnum

The value should be in range of [0, 255]. Corresponds to the JSON property green

Returns:

  • (Fixnum)


1623
1624
1625
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1623

def green
  @green
end

#redFixnum

The value should be in range of [0, 255]. Corresponds to the JSON property red

Returns:

  • (Fixnum)


1628
1629
1630
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1628

def red
  @red
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1635
1636
1637
1638
1639
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1635

def update!(**args)
  @blue = args[:blue] if args.key?(:blue)
  @green = args[:green] if args.key?(:green)
  @red = args[:red] if args.key?(:red)
end