Class: Google::Apis::PhotoslibraryV1::SharedAlbumOptions

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

Options that control the sharing of 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) ⇒ 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_collaborativeBoolean 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

Returns:

  • (Boolean)


1160
1161
1162
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1160

def is_collaborative
  @is_collaborative
end

#is_commentableBoolean 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

Returns:

  • (Boolean)


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