Class: Google::Apis::BooksV1::Volume::SearchInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/books_v1/classes.rb,
generated/google/apis/books_v1/representations.rb,
generated/google/apis/books_v1/representations.rb

Overview

Search result information related to this volume.

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) ⇒ SearchInfo

Returns a new instance of SearchInfo.



3391
3392
3393
# File 'generated/google/apis/books_v1/classes.rb', line 3391

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#text_snippetString

A text snippet containing the search query. Corresponds to the JSON property textSnippet

Returns:

  • (String)


3389
3390
3391
# File 'generated/google/apis/books_v1/classes.rb', line 3389

def text_snippet
  @text_snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3396
3397
3398
# File 'generated/google/apis/books_v1/classes.rb', line 3396

def update!(**args)
  @text_snippet = args[:text_snippet] if args.key?(:text_snippet)
end