Class: Google::Apis::BooksV1::Review::Source

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

Information regarding the source of this review, when the review is not from a Google Books user.

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

Returns a new instance of Source.



2554
2555
2556
# File 'generated/google/apis/books_v1/classes.rb', line 2554

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

Instance Attribute Details

#descriptionString

Name of the source. Corresponds to the JSON property description

Returns:

  • (String)


2542
2543
2544
# File 'generated/google/apis/books_v1/classes.rb', line 2542

def description
  @description
end

#extra_descriptionString

Extra text about the source of the review. Corresponds to the JSON property extraDescription

Returns:

  • (String)


2547
2548
2549
# File 'generated/google/apis/books_v1/classes.rb', line 2547

def extra_description
  @extra_description
end

#urlString

URL of the source of the review. Corresponds to the JSON property url

Returns:

  • (String)


2552
2553
2554
# File 'generated/google/apis/books_v1/classes.rb', line 2552

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2559
2560
2561
2562
2563
# File 'generated/google/apis/books_v1/classes.rb', line 2559

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