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

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

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


126
127
128
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 126

def name
  @name
end

#themeString

The theme of the shelf Corresponds to the JSON property theme

Returns:

  • (String)


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