Class: Google::Apis::ProximitybeaconV1beta1::Observation

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

Overview

Represents one beacon observed once.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Observation

Returns a new instance of Observation.



692
693
694
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 692

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

Instance Attribute Details

#advertised_idGoogle::Apis::ProximitybeaconV1beta1::AdvertisedId

Defines a unique identifier of a beacon as broadcast by the device. Corresponds to the JSON property advertisedId



678
679
680
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 678

def advertised_id
  @advertised_id
end

#telemetryString

The array of telemetry bytes received from the beacon. The server is responsible for parsing it. This field may frequently be empty, as with a beacon that transmits telemetry only occasionally. Corresponds to the JSON property telemetry

Returns:

  • (String)


685
686
687
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 685

def telemetry
  @telemetry
end

#timestamp_msString

Time when the beacon was observed. Corresponds to the JSON property timestampMs

Returns:

  • (String)


690
691
692
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 690

def timestamp_ms
  @timestamp_ms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



697
698
699
700
701
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 697

def update!(**args)
  @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
  @telemetry = args[:telemetry] if args.key?(:telemetry)
  @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
end