Class: Google::Apis::CoordinateV1::CustomField

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/coordinate_v1/classes.rb,
generated/google/apis/coordinate_v1/representations.rb,
generated/google/apis/coordinate_v1/representations.rb

Overview

Custom field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CustomField

Returns a new instance of CustomField.



44
45
46
# File 'generated/google/apis/coordinate_v1/classes.rb', line 44

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

Instance Attribute Details

#custom_field_idString

Custom field id. Corresponds to the JSON property customFieldId

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/coordinate_v1/classes.rb', line 32

def custom_field_id
  @custom_field_id
end

#kindString

Identifies this object as a custom field. Corresponds to the JSON property kind

Returns:

  • (String)


37
38
39
# File 'generated/google/apis/coordinate_v1/classes.rb', line 37

def kind
  @kind
end

#valueString

Custom field value. Corresponds to the JSON property value

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/coordinate_v1/classes.rb', line 42

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



49
50
51
52
53
# File 'generated/google/apis/coordinate_v1/classes.rb', line 49

def update!(**args)
  @custom_field_id = args[:custom_field_id] if args.key?(:custom_field_id)
  @kind = args[:kind] if args.key?(:kind)
  @value = args[:value] if args.key?(:value)
end