Class: Google::Apis::Area120tablesV1alpha1::LabeledItem

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

Overview

A single item in a labeled column.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LabeledItem

Returns a new instance of LabeledItem.



223
224
225
# File 'generated/google/apis/area120tables_v1alpha1/classes.rb', line 223

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

Instance Attribute Details

#idString

Internal id associated with the item. Corresponds to the JSON property id

Returns:

  • (String)


216
217
218
# File 'generated/google/apis/area120tables_v1alpha1/classes.rb', line 216

def id
  @id
end

#nameString

Display string as entered by user. Corresponds to the JSON property name

Returns:

  • (String)


221
222
223
# File 'generated/google/apis/area120tables_v1alpha1/classes.rb', line 221

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



228
229
230
231
# File 'generated/google/apis/area120tables_v1alpha1/classes.rb', line 228

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