Class: Google::Apis::ProximitybeaconV1beta1::Observation
- Inherits:
-
Object
- Object
- Google::Apis::ProximitybeaconV1beta1::Observation
- 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
-
#advertised_id ⇒ Google::Apis::ProximitybeaconV1beta1::AdvertisedId
Defines a unique identifier of a beacon as broadcast by the device.
-
#telemetry ⇒ String
The array of telemetry bytes received from the beacon.
-
#timestamp_ms ⇒ String
Time when the beacon was observed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Observation
constructor
A new instance of Observation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Observation
Returns a new instance of Observation
168 169 170 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 168 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advertised_id ⇒ Google::Apis::ProximitybeaconV1beta1::AdvertisedId
Defines a unique identifier of a beacon as broadcast by the device.
Corresponds to the JSON property advertisedId
166 167 168 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 166 def advertised_id @advertised_id end |
#telemetry ⇒ String
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
NOTE: Values are automatically base64 encoded/decoded in the client library.
156 157 158 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 156 def telemetry @telemetry end |
#timestamp_ms ⇒ String
Time when the beacon was observed.
Corresponds to the JSON property timestampMs
161 162 163 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 161 def @timestamp_ms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
173 174 175 176 177 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 173 def update!(**args) @telemetry = args[:telemetry] if args.key?(:telemetry) @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms) @advertised_id = args[:advertised_id] if args.key?(:advertised_id) end |