class Google::Apis::CoordinateV1::EnumItemDef

Enum Item definition.

Attributes

active[RW]

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` @return [Boolean]

active?[RW]

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` @return [Boolean]

kind[RW]

Identifies this object as an enum item definition. Corresponds to the JSON property `kind` @return [String]

value[RW]

Custom field value. Corresponds to the JSON property `value` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/coordinate_v1/classes.rb, line 186
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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