Class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo
- Inherits:
-
Object
- Object
- Google::Apis::ProximitybeaconV1beta1::AttachmentInfo
- 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
-
#data ⇒ String
An opaque data container for client-provided data.
-
#namespaced_type ⇒ String
Specifies what kind of attachment this is.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AttachmentInfo
constructor
A new instance of AttachmentInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AttachmentInfo
Returns a new instance of AttachmentInfo
44 45 46 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 44 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ String
An opaque data container for client-provided data.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
42 43 44 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 42 def data @data end |
#namespaced_type ⇒ String
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
36 37 38 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 36 def namespaced_type @namespaced_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
49 50 51 52 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 49 def update!(**args) @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type) @data = args[:data] if args.key?(:data) end |