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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/area120tables_v1alpha1/classes.rb,
lib/google/apis/area120tables_v1alpha1/representations.rb,
lib/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.



285
286
287
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 285

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


278
279
280
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 278

def id
  @id
end

#nameString

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

Returns:

  • (String)


283
284
285
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 283

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



290
291
292
293
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 290

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