Class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId

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

Defines a unique identifier of a beacon as broadcast by the device.

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) ⇒ AdvertisedId

Returns a new instance of AdvertisedId.


173
174
175
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 173

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

Instance Attribute Details

#idString

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

Returns:

  • (String)

171
172
173
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 171

def id
  @id
end

#typeString

Specifies the identifier type. Required. Corresponds to the JSON property type

Returns:

  • (String)

162
163
164
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 162

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


178
179
180
181
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 178

def update!(**args)
  @type = args[:type] if args.key?(:type)
  @id = args[:id] if args.key?(:id)
end