Class: Google::Apis::CoordinateV1::CustomFields

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

Collection of custom fields.

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) ⇒ CustomFields

Returns a new instance of CustomFields.



153
154
155
# File 'generated/google/apis/coordinate_v1/classes.rb', line 153

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

Instance Attribute Details

#custom_fieldArray<Google::Apis::CoordinateV1::CustomField>

Collection of custom fields. Corresponds to the JSON property customField



146
147
148
# File 'generated/google/apis/coordinate_v1/classes.rb', line 146

def custom_field
  @custom_field
end

#kindString

Identifies this object as a collection of custom fields. Corresponds to the JSON property kind

Returns:

  • (String)


151
152
153
# File 'generated/google/apis/coordinate_v1/classes.rb', line 151

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



158
159
160
161
# File 'generated/google/apis/coordinate_v1/classes.rb', line 158

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