Class: Google::Apis::LibraryagentV1::GoogleExampleLibraryagentV1Shelf
- Inherits:
-
Object
- Object
- Google::Apis::LibraryagentV1::GoogleExampleLibraryagentV1Shelf
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/libraryagent_v1/classes.rb,
generated/google/apis/libraryagent_v1/representations.rb,
generated/google/apis/libraryagent_v1/representations.rb
Overview
A Shelf contains a collection of books with a theme.
Instance Attribute Summary collapse
-
#name ⇒ String
Output only.
-
#theme ⇒ String
The theme of the shelf Corresponds to the JSON property
theme
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleExampleLibraryagentV1Shelf
constructor
A new instance of GoogleExampleLibraryagentV1Shelf.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleExampleLibraryagentV1Shelf
Returns a new instance of GoogleExampleLibraryagentV1Shelf.
133 134 135 |
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 133 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Output only. The resource name of the shelf. Shelf names have the form
shelves/
shelf_id`. The name is ignored when creating a shelf.
Corresponds to the JSON property
name`
126 127 128 |
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 126 def name @name end |
#theme ⇒ String
The theme of the shelf
Corresponds to the JSON property theme
131 132 133 |
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 131 def theme @theme end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
138 139 140 141 |
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 138 def update!(**args) @name = args[:name] if args.key?(:name) @theme = args[:theme] if args.key?(:theme) end |