Class: Google::Apis::HomegraphV1::EveUtilityTrait
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::EveUtilityTrait
- 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
-
#accepted_command_list ⇒ Array<String>
Required.
-
#accumulated_control_point ⇒ Fixnum
Corresponds to the JSON property
accumulatedControlPoint. -
#air_pressure ⇒ Float
Corresponds to the JSON property
airPressure. -
#altitude ⇒ Float
Corresponds to the JSON property
altitude. -
#child_lock ⇒ Boolean
(also: #child_lock?)
Corresponds to the JSON property
childLock. -
#current ⇒ Float
Corresponds to the JSON property
current. -
#get_config ⇒ String
Corresponds to the JSON property
getConfigNOTE: Values are automatically base64 encoded/decoded in the client library. -
#hold_position ⇒ Boolean
(also: #hold_position?)
Corresponds to the JSON property
holdPosition. -
#last_event_time ⇒ Fixnum
Corresponds to the JSON property
lastEventTime. -
#logging_control_point ⇒ String
Corresponds to the JSON property
loggingControlPointNOTE: Values are automatically base64 encoded/decoded in the client library. -
#logging_data ⇒ String
Corresponds to the JSON property
loggingDataNOTE: Values are automatically base64 encoded/decoded in the client library. -
#logging_metadata ⇒ String
Corresponds to the JSON property
loggingMetadataNOTE: Values are automatically base64 encoded/decoded in the client library. -
#logging_time ⇒ String
Corresponds to the JSON property
loggingTimeNOTE: Values are automatically base64 encoded/decoded in the client library. -
#motion_sensitivity ⇒ Fixnum
Corresponds to the JSON property
motionSensitivity. -
#obstruction_detected ⇒ Boolean
(also: #obstruction_detected?)
Corresponds to the JSON property
obstructionDetected. -
#open_count ⇒ Fixnum
Corresponds to the JSON property
openCount. -
#rloc16 ⇒ Fixnum
Corresponds to the JSON property
rloc16. -
#set_config ⇒ String
Corresponds to the JSON property
setConfigNOTE: Values are automatically base64 encoded/decoded in the client library. -
#status_fault ⇒ Fixnum
Corresponds to the JSON property
statusFault. -
#voltage ⇒ Float
Corresponds to the JSON property
voltage. -
#watt ⇒ Float
Corresponds to the JSON property
watt. -
#watt_accumulated ⇒ Float
Corresponds to the JSON property
wattAccumulated. -
#weather_trend ⇒ Fixnum
Corresponds to the JSON property
weatherTrend.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EveUtilityTrait
constructor
A new instance of EveUtilityTrait.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EveUtilityTrait
Returns a new instance of EveUtilityTrait.
536 537 538 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 536 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accepted_command_list ⇒ Array<String>
Required. Output only. Accepted command list for this trait
Corresponds to the JSON property acceptedCommandList
415 416 417 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 415 def accepted_command_list @accepted_command_list end |
#accumulated_control_point ⇒ Fixnum
Corresponds to the JSON property accumulatedControlPoint
420 421 422 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 420 def accumulated_control_point @accumulated_control_point end |
#air_pressure ⇒ Float
Corresponds to the JSON property airPressure
425 426 427 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 425 def air_pressure @air_pressure end |
#altitude ⇒ Float
Corresponds to the JSON property altitude
430 431 432 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 430 def altitude @altitude end |
#child_lock ⇒ Boolean Also known as: child_lock?
Corresponds to the JSON property childLock
435 436 437 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 435 def child_lock @child_lock end |
#current ⇒ Float
Corresponds to the JSON property current
441 442 443 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 441 def current @current end |
#get_config ⇒ String
Corresponds to the JSON property getConfig
NOTE: Values are automatically base64 encoded/decoded in the client library.
447 448 449 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 447 def get_config @get_config end |
#hold_position ⇒ Boolean Also known as: hold_position?
Corresponds to the JSON property holdPosition
452 453 454 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 452 def hold_position @hold_position end |
#last_event_time ⇒ Fixnum
Corresponds to the JSON property lastEventTime
458 459 460 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 458 def last_event_time @last_event_time end |
#logging_control_point ⇒ String
Corresponds to the JSON property loggingControlPoint
NOTE: Values are automatically base64 encoded/decoded in the client library.
464 465 466 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 464 def logging_control_point @logging_control_point end |
#logging_data ⇒ String
Corresponds to the JSON property loggingData
NOTE: Values are automatically base64 encoded/decoded in the client library.
470 471 472 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 470 def logging_data @logging_data end |
#logging_metadata ⇒ String
Corresponds to the JSON property loggingMetadata
NOTE: Values are automatically base64 encoded/decoded in the client library.
476 477 478 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 476 def @logging_metadata end |
#logging_time ⇒ String
Corresponds to the JSON property loggingTime
NOTE: Values are automatically base64 encoded/decoded in the client library.
482 483 484 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 482 def logging_time @logging_time end |
#motion_sensitivity ⇒ Fixnum
Corresponds to the JSON property motionSensitivity
487 488 489 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 487 def motion_sensitivity @motion_sensitivity end |
#obstruction_detected ⇒ Boolean Also known as: obstruction_detected?
Corresponds to the JSON property obstructionDetected
492 493 494 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 492 def obstruction_detected @obstruction_detected end |
#open_count ⇒ Fixnum
Corresponds to the JSON property openCount
498 499 500 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 498 def open_count @open_count end |
#rloc16 ⇒ Fixnum
Corresponds to the JSON property rloc16
503 504 505 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 503 def rloc16 @rloc16 end |
#set_config ⇒ String
Corresponds to the JSON property setConfig
NOTE: Values are automatically base64 encoded/decoded in the client library.
509 510 511 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 509 def set_config @set_config end |
#status_fault ⇒ Fixnum
Corresponds to the JSON property statusFault
514 515 516 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 514 def status_fault @status_fault end |
#voltage ⇒ Float
Corresponds to the JSON property voltage
519 520 521 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 519 def voltage @voltage end |
#watt ⇒ Float
Corresponds to the JSON property watt
524 525 526 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 524 def watt @watt end |
#watt_accumulated ⇒ Float
Corresponds to the JSON property wattAccumulated
529 530 531 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 529 def watt_accumulated @watt_accumulated end |
#weather_trend ⇒ Fixnum
Corresponds to the JSON property weatherTrend
534 535 536 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 534 def weather_trend @weather_trend end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 541 def update!(**args) @accepted_command_list = args[:accepted_command_list] if args.key?(:accepted_command_list) @accumulated_control_point = args[:accumulated_control_point] if args.key?(:accumulated_control_point) @air_pressure = args[:air_pressure] if args.key?(:air_pressure) @altitude = args[:altitude] if args.key?(:altitude) @child_lock = args[:child_lock] if args.key?(:child_lock) @current = args[:current] if args.key?(:current) @get_config = args[:get_config] if args.key?(:get_config) @hold_position = args[:hold_position] if args.key?(:hold_position) @last_event_time = args[:last_event_time] if args.key?(:last_event_time) @logging_control_point = args[:logging_control_point] if args.key?(:logging_control_point) @logging_data = args[:logging_data] if args.key?(:logging_data) @logging_metadata = args[:logging_metadata] if args.key?(:logging_metadata) @logging_time = args[:logging_time] if args.key?(:logging_time) @motion_sensitivity = args[:motion_sensitivity] if args.key?(:motion_sensitivity) @obstruction_detected = args[:obstruction_detected] if args.key?(:obstruction_detected) @open_count = args[:open_count] if args.key?(:open_count) @rloc16 = args[:rloc16] if args.key?(:rloc16) @set_config = args[:set_config] if args.key?(:set_config) @status_fault = args[:status_fault] if args.key?(:status_fault) @voltage = args[:voltage] if args.key?(:voltage) @watt = args[:watt] if args.key?(:watt) @watt_accumulated = args[:watt_accumulated] if args.key?(:watt_accumulated) @weather_trend = args[:weather_trend] if args.key?(:weather_trend) end |