Class: Google::Apis::BooksV1::Review
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Review
- 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
Defined Under Namespace
Instance Attribute Summary collapse
-
#author ⇒ Google::Apis::BooksV1::Review::Author
Author of this review.
-
#content ⇒ String
Review text.
-
#date ⇒ String
Date of this review.
-
#full_text_url ⇒ String
URL for the full review text, for reviews gathered from the web.
-
#kind ⇒ String
Resource type for a review.
-
#rating ⇒ String
Star rating for this review.
-
#source ⇒ Google::Apis::BooksV1::Review::Source
Information regarding the source of this review, when the review is not from a Google Books user.
-
#title ⇒ String
Title for this review.
-
#type ⇒ String
Source type for this review.
-
#volume_id ⇒ String
Volume that this review is for.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Review
constructor
A new instance of Review.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Review
Returns a new instance of Review.
2337 2338 2339 |
# File 'generated/google/apis/books_v1/classes.rb', line 2337 def initialize(**args) update!(**args) end |
Instance Attribute Details
#author ⇒ Google::Apis::BooksV1::Review::Author
Author of this review.
Corresponds to the JSON property author
2287 2288 2289 |
# File 'generated/google/apis/books_v1/classes.rb', line 2287 def @author end |
#content ⇒ String
Review text.
Corresponds to the JSON property content
2292 2293 2294 |
# File 'generated/google/apis/books_v1/classes.rb', line 2292 def content @content end |
#date ⇒ String
Date of this review.
Corresponds to the JSON property date
2297 2298 2299 |
# File 'generated/google/apis/books_v1/classes.rb', line 2297 def date @date end |
#full_text_url ⇒ String
URL for the full review text, for reviews gathered from the web.
Corresponds to the JSON property fullTextUrl
2302 2303 2304 |
# File 'generated/google/apis/books_v1/classes.rb', line 2302 def full_text_url @full_text_url end |
#kind ⇒ String
Resource type for a review.
Corresponds to the JSON property kind
2307 2308 2309 |
# File 'generated/google/apis/books_v1/classes.rb', line 2307 def kind @kind end |
#rating ⇒ String
Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE
or NOT_RATED.
Corresponds to the JSON property rating
2313 2314 2315 |
# File 'generated/google/apis/books_v1/classes.rb', line 2313 def @rating end |
#source ⇒ Google::Apis::BooksV1::Review::Source
Information regarding the source of this review, when the review is not from a
Google Books user.
Corresponds to the JSON property source
2319 2320 2321 |
# File 'generated/google/apis/books_v1/classes.rb', line 2319 def source @source end |
#title ⇒ String
Title for this review.
Corresponds to the JSON property title
2324 2325 2326 |
# File 'generated/google/apis/books_v1/classes.rb', line 2324 def title @title end |
#type ⇒ String
Source type for this review. Possible values are EDITORIAL, WEB_USER or
GOOGLE_USER.
Corresponds to the JSON property type
2330 2331 2332 |
# File 'generated/google/apis/books_v1/classes.rb', line 2330 def type @type end |
#volume_id ⇒ String
Volume that this review is for.
Corresponds to the JSON property volumeId
2335 2336 2337 |
# File 'generated/google/apis/books_v1/classes.rb', line 2335 def volume_id @volume_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 |
# File 'generated/google/apis/books_v1/classes.rb', line 2342 def update!(**args) @author = args[:author] if args.key?(:author) @content = args[:content] if args.key?(:content) @date = args[:date] if args.key?(:date) @full_text_url = args[:full_text_url] if args.key?(:full_text_url) @kind = args[:kind] if args.key?(:kind) @rating = args[:rating] if args.key?(:rating) @source = args[:source] if args.key?(:source) @title = args[:title] if args.key?(:title) @type = args[:type] if args.key?(:type) @volume_id = args[:volume_id] if args.key?(:volume_id) end |