Class: Google::Apis::CoordinateV1::EnumItemDef
- Inherits:
-
Object
- Object
- Google::Apis::CoordinateV1::EnumItemDef
- Defined in:
- generated/google/apis/coordinate_v1/classes.rb,
generated/google/apis/coordinate_v1/representations.rb,
generated/google/apis/coordinate_v1/representations.rb
Overview
Enum Item definition.
Instance Attribute Summary collapse
-
#active ⇒ Boolean
(also: #active?)
Whether the enum item is active.
-
#kind ⇒ String
Identifies this object as an enum item definition.
-
#value ⇒ String
Custom field value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnumItemDef
constructor
A new instance of EnumItemDef.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ EnumItemDef
Returns a new instance of EnumItemDef
186 187 188 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 186 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active ⇒ Boolean Also known as: active?
Whether the enum item is active. Jobs may contain inactive enum values;
however, setting an enum to an inactive value when creating or updating a job
will result in a 500 error.
Corresponds to the JSON property active
173 174 175 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 173 def active @active end |
#kind ⇒ String
Identifies this object as an enum item definition.
Corresponds to the JSON property kind
179 180 181 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 179 def kind @kind end |
#value ⇒ String
Custom field value.
Corresponds to the JSON property value
184 185 186 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 184 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
191 192 193 194 195 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 191 def update!(**args) @active = args[:active] if args.key?(:active) @kind = args[:kind] if args.key?(:kind) @value = args[:value] if args.key?(:value) end |