Class: Google::Apis::PhotoslibraryV1::SharedAlbumOptions
- Inherits:
-
Object
- Object
- Google::Apis::PhotoslibraryV1::SharedAlbumOptions
- 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
Options that control the sharing of an album.
Instance Attribute Summary collapse
-
#is_collaborative ⇒ Boolean
(also: #is_collaborative?)
True if the shared album allows collaborators (users who have joined the album) to add media items to it.
-
#is_commentable ⇒ Boolean
(also: #is_commentable?)
True if the shared album allows the owner and the collaborators (users who have joined the album) to add comments to the album.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SharedAlbumOptions
constructor
A new instance of SharedAlbumOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SharedAlbumOptions
Returns a new instance of SharedAlbumOptions
1170 1171 1172 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1170 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_collaborative ⇒ Boolean Also known as: is_collaborative?
True if the shared album allows collaborators (users who have joined
the album) to add media items to it. Defaults to false.
Corresponds to the JSON property isCollaborative
1160 1161 1162 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1160 def is_collaborative @is_collaborative end |
#is_commentable ⇒ Boolean Also known as: is_commentable?
True if the shared album allows the owner and the collaborators (users
who have joined the album) to add comments to the album. Defaults to false.
Corresponds to the JSON property isCommentable
1167 1168 1169 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1167 def is_commentable @is_commentable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1175 1176 1177 1178 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1175 def update!(**args) @is_collaborative = args[:is_collaborative] if args.key?(:is_collaborative) @is_commentable = args[:is_commentable] if args.key?(:is_commentable) end |