Class: Google::Apis::Area120tablesV1alpha1::LabeledItem
- Inherits:
-
Object
- Object
- Google::Apis::Area120tablesV1alpha1::LabeledItem
- 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
-
#id ⇒ String
Internal id associated with the item.
-
#name ⇒ String
Display string as entered by user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LabeledItem
constructor
A new instance of LabeledItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#id ⇒ String
Internal id associated with the item.
Corresponds to the JSON property id
216 217 218 |
# File 'generated/google/apis/area120tables_v1alpha1/classes.rb', line 216 def id @id end |
#name ⇒ String
Display string as entered by user.
Corresponds to the JSON property name
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 |