Class: Google::Apis::HomegraphV1::ZoneStruct

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ZoneStruct

Returns a new instance of ZoneStruct.



1416
1417
1418
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1416

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

Instance Attribute Details

#labelString

Name of the zone. Corresponds to the JSON property label

Returns:

  • (String)


1409
1410
1411
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1409

def label
  @label
end

#zone_idFixnum

Id of the zone Corresponds to the JSON property zoneId

Returns:

  • (Fixnum)


1414
1415
1416
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1414

def zone_id
  @zone_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1421
1422
1423
1424
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1421

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