Class: Google::Apis::BooksV1::Review::Source
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Review::Source
- 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
Information regarding the source of this review, when the review is not from a Google Books user.
Instance Attribute Summary collapse
-
#description ⇒ String
Name of the source.
-
#extra_description ⇒ String
Extra text about the source of the review.
-
#url ⇒ String
URL of the source of the review.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Source
constructor
A new instance of Source.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Source
Returns a new instance of Source.
2546 2547 2548 |
# File 'generated/google/apis/books_v1/classes.rb', line 2546 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Name of the source.
Corresponds to the JSON property description
2534 2535 2536 |
# File 'generated/google/apis/books_v1/classes.rb', line 2534 def description @description end |
#extra_description ⇒ String
Extra text about the source of the review.
Corresponds to the JSON property extraDescription
2539 2540 2541 |
# File 'generated/google/apis/books_v1/classes.rb', line 2539 def extra_description @extra_description end |
#url ⇒ String
URL of the source of the review.
Corresponds to the JSON property url
2544 2545 2546 |
# File 'generated/google/apis/books_v1/classes.rb', line 2544 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2551 2552 2553 2554 2555 |
# File 'generated/google/apis/books_v1/classes.rb', line 2551 def update!(**args) @description = args[:description] if args.key?(:description) @extra_description = args[:extra_description] if args.key?(:extra_description) @url = args[:url] if args.key?(:url) end |