Class: Google::Apis::LanguageV1beta2::XpsColorMapIntColor
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::XpsColorMapIntColor
- 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
-
#blue ⇒ Fixnum
The value should be in range of [0, 255].
-
#green ⇒ Fixnum
The value should be in range of [0, 255].
-
#red ⇒ Fixnum
The value should be in range of [0, 255].
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsColorMapIntColor
constructor
A new instance of XpsColorMapIntColor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsColorMapIntColor
Returns a new instance of XpsColorMapIntColor.
1624 1625 1626 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1624 def initialize(**args) update!(**args) end |
Instance Attribute Details
#blue ⇒ Fixnum
The value should be in range of [0, 255].
Corresponds to the JSON property blue
1612 1613 1614 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1612 def blue @blue end |
#green ⇒ Fixnum
The value should be in range of [0, 255].
Corresponds to the JSON property green
1617 1618 1619 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1617 def green @green end |
#red ⇒ Fixnum
The value should be in range of [0, 255].
Corresponds to the JSON property red
1622 1623 1624 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1622 def red @red end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1629 1630 1631 1632 1633 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1629 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 |