Class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo

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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BeaconInfo

Returns a new instance of BeaconInfo



464
465
466
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 464

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



462
463
464
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 462

def advertised_id
  @advertised_id
end

#attachmentsArray<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



457
458
459
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 457

def attachments
  @attachments
end

#beacon_nameString

The name under which the beacon is registered. Corresponds to the JSON property beaconName

Returns:

  • (String)


451
452
453
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 451

def beacon_name
  @beacon_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



469
470
471
472
473
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 469

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