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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleExampleLibraryagentV1Shelf
Returns a new instance of GoogleExampleLibraryagentV1Shelf
139 140 141 |
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 139 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`
132 133 134 |
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 132 def name @name end |
#theme ⇒ String
The theme of the shelf
Corresponds to the JSON property theme
137 138 139 |
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 137 def theme @theme end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
144 145 146 147 |
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 144 def update!(**args) @name = args[:name] if args.key?(:name) @theme = args[:theme] if args.key?(:theme) end |