Class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId
- Inherits:
-
Object
- Object
- Google::Apis::ProximitybeaconV1beta1::AdvertisedId
- 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
Defines a unique identifier of a beacon as broadcast by the device.
Instance Attribute Summary collapse
-
#id ⇒ String
The actual beacon identifier, as broadcast by the beacon hardware.
-
#type ⇒ String
Specifies the identifier type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdvertisedId
constructor
A new instance of AdvertisedId.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AdvertisedId
Returns a new instance of AdvertisedId
767 768 769 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 767 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The actual beacon identifier, as broadcast by the beacon hardware. Must be
base64 encoded in HTTP
requests, and will be so encoded (with padding) in responses. The base64
encoding should be of the binary byte-stream and not any textual (such as
hex) representation thereof.
Required.
Corresponds to the JSON property id
765 766 767 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 765 def id @id end |
#type ⇒ String
Specifies the identifier type.
Required.
Corresponds to the JSON property type
755 756 757 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 755 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
772 773 774 775 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 772 def update!(**args) @type = args[:type] if args.key?(:type) @id = args[:id] if args.key?(:id) end |