Class: Google::Apis::LibraryagentV1::GoogleExampleLibraryagentV1Shelf

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#nameString

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 propertyname`

Returns:

  • (String)


132
133
134
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 132

def name
  @name
end

#themeString

The theme of the shelf Corresponds to the JSON property theme

Returns:

  • (String)


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