Class: Google::Apis::PhotoslibraryV1::AlbumPosition
- Inherits:
-
Object
- Object
- Google::Apis::PhotoslibraryV1::AlbumPosition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/photoslibrary_v1/classes.rb,
generated/google/apis/photoslibrary_v1/representations.rb,
generated/google/apis/photoslibrary_v1/representations.rb
Overview
Specifies a position in an album.
Instance Attribute Summary collapse
-
#position ⇒ String
Type of position, for a media or enrichment item.
-
#relative_enrichment_item_id ⇒ String
The enrichment item to which the position is relative to.
-
#relative_media_item_id ⇒ String
The media item to which the position is relative to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AlbumPosition
constructor
A new instance of AlbumPosition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AlbumPosition
Returns a new instance of AlbumPosition
160 161 162 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 160 def initialize(**args) update!(**args) end |
Instance Attribute Details
#position ⇒ String
Type of position, for a media or enrichment item.
Corresponds to the JSON property position
146 147 148 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 146 def position @position end |
#relative_enrichment_item_id ⇒ String
The enrichment item to which the position is relative to.
Only used when position type is AFTER_ENRICHMENT_ITEM.
Corresponds to the JSON property relativeEnrichmentItemId
152 153 154 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 152 def relative_enrichment_item_id @relative_enrichment_item_id end |
#relative_media_item_id ⇒ String
The media item to which the position is relative to.
Only used when position type is AFTER_MEDIA_ITEM.
Corresponds to the JSON property relativeMediaItemId
158 159 160 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 158 def relative_media_item_id @relative_media_item_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
165 166 167 168 169 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 165 def update!(**args) @position = args[:position] if args.key?(:position) @relative_enrichment_item_id = args[:relative_enrichment_item_id] if args.key?(:relative_enrichment_item_id) @relative_media_item_id = args[:relative_media_item_id] if args.key?(:relative_media_item_id) end |