Class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo
- Inherits:
-
Object
- Object
- Google::Apis::ProximitybeaconV1beta1::BeaconInfo
- 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
A subset of beacon information served via the beaconinfo.getforobserved
method, which you call when users of your app encounter your beacons.
Instance Attribute Summary collapse
-
#advertised_id ⇒ Google::Apis::ProximitybeaconV1beta1::AdvertisedId
Defines a unique identifier of a beacon as broadcast by the device.
-
#attachments ⇒ Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>
Attachments matching the type(s) requested.
-
#beacon_name ⇒ String
The name under which the beacon is registered.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BeaconInfo
constructor
A new instance of BeaconInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BeaconInfo
Returns a new instance of BeaconInfo
76 77 78 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 76 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
68 69 70 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 68 def advertised_id @advertised_id end |
#attachments ⇒ Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>
Attachments matching the type(s) requested.
May be empty if no attachment types were requested.
Corresponds to the JSON property attachments
74 75 76 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 74 def @attachments end |
#beacon_name ⇒ String
The name under which the beacon is registered.
Corresponds to the JSON property beaconName
63 64 65 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 63 def beacon_name @beacon_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
81 82 83 84 85 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 81 def update!(**args) @beacon_name = args[:beacon_name] if args.key?(:beacon_name) @advertised_id = args[:advertised_id] if args.key?(:advertised_id) @attachments = args[:attachments] if args.key?(:attachments) end |