Class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo

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 attachment information served via the beaconinfo.getforobserved method, used when your users 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) ⇒ AttachmentInfo

Returns a new instance of AttachmentInfo.


774
775
776
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 774

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

Instance Attribute Details

#dataString

An opaque data container for client-provided data. Corresponds to the JSON property data

Returns:

  • (String)

772
773
774
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 772

def data
  @data
end

#namespaced_typeString

Specifies what kind of attachment this is. Tells a client how to interpret the data field. Format is namespace/type, for example scrupulous-wombat-12345/ welcome-message Corresponds to the JSON property namespacedType

Returns:

  • (String)

767
768
769
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 767

def namespaced_type
  @namespaced_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


779
780
781
782
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 779

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