Class: Google::Apis::PhotoslibraryV1::AlbumPosition

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#positionString

Type of position, for a media or enrichment item. Corresponds to the JSON property position

Returns:

  • (String)


146
147
148
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 146

def position
  @position
end

#relative_enrichment_item_idString

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

Returns:

  • (String)


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_idString

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

Returns:

  • (String)


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