Class: Google::Apis::BooksV1::Volume::VolumeInfo
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Volume::VolumeInfo
- 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
General volume information.
Defined Under Namespace
Classes: Dimensions, ImageLinks, IndustryIdentifier, PanelizationSummary
Instance Attribute Summary collapse
-
#allow_anon_logging ⇒ Boolean
(also: #allow_anon_logging?)
Whether anonymous logging should be allowed.
-
#authors ⇒ Array<String>
The names of the authors and/or editors for this volume.
-
#average_rating ⇒ Float
The mean review rating for this volume.
-
#canonical_volume_link ⇒ String
Canonical URL for a volume.
-
#categories ⇒ Array<String>
A list of subject categories, such as "Fiction", "Suspense", etc.
-
#comics_content ⇒ Boolean
(also: #comics_content?)
Whether the volume has comics content.
-
#content_version ⇒ String
An identifier for the version of the volume content (text & images).
-
#description ⇒ String
A synopsis of the volume.
-
#dimensions ⇒ Google::Apis::BooksV1::Volume::VolumeInfo::Dimensions
Physical dimensions of this volume.
-
#image_links ⇒ Google::Apis::BooksV1::Volume::VolumeInfo::ImageLinks
A list of image links for all the sizes that are available.
-
#industry_identifiers ⇒ Array<Google::Apis::BooksV1::Volume::VolumeInfo::IndustryIdentifier>
Industry standard identifiers for this volume.
-
#info_link ⇒ String
URL to view information about this volume on the Google Books site.
-
#language ⇒ String
Best language for this volume (based on content).
-
#main_category ⇒ String
The main category to which this volume belongs.
-
#maturity_rating ⇒ String
Corresponds to the JSON property
maturityRating
. -
#page_count ⇒ Fixnum
Total number of pages as per publisher metadata.
-
#panelization_summary ⇒ Google::Apis::BooksV1::Volume::VolumeInfo::PanelizationSummary
A top-level summary of the panelization info in this volume.
-
#preview_link ⇒ String
URL to preview this volume on the Google Books site.
-
#print_type ⇒ String
Type of publication of this volume.
-
#printed_page_count ⇒ Fixnum
Total number of printed pages in generated pdf representation.
-
#published_date ⇒ String
Date of publication.
-
#publisher ⇒ String
Publisher of this volume.
-
#ratings_count ⇒ Fixnum
The number of review ratings for this volume.
-
#reading_modes ⇒ Object
The reading modes available for this volume.
-
#sample_page_count ⇒ Fixnum
Total number of sample pages as per publisher metadata.
-
#series_info ⇒ Google::Apis::BooksV1::Volumeseriesinfo
Corresponds to the JSON property
seriesInfo
. -
#subtitle ⇒ String
Volume subtitle.
-
#title ⇒ String
Volume title.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VolumeInfo
constructor
A new instance of VolumeInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VolumeInfo
Returns a new instance of VolumeInfo.
3900 3901 3902 |
# File 'generated/google/apis/books_v1/classes.rb', line 3900 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_anon_logging ⇒ Boolean Also known as: allow_anon_logging?
Whether anonymous logging should be allowed.
Corresponds to the JSON property allowAnonLogging
3754 3755 3756 |
# File 'generated/google/apis/books_v1/classes.rb', line 3754 def allow_anon_logging @allow_anon_logging end |
#authors ⇒ Array<String>
The names of the authors and/or editors for this volume. (In LITE projection)
Corresponds to the JSON property authors
3760 3761 3762 |
# File 'generated/google/apis/books_v1/classes.rb', line 3760 def @authors end |
#average_rating ⇒ Float
The mean review rating for this volume. (min = 1.0, max = 5.0)
Corresponds to the JSON property averageRating
3765 3766 3767 |
# File 'generated/google/apis/books_v1/classes.rb', line 3765 def @average_rating end |
#canonical_volume_link ⇒ String
Canonical URL for a volume. (In LITE projection.)
Corresponds to the JSON property canonicalVolumeLink
3770 3771 3772 |
# File 'generated/google/apis/books_v1/classes.rb', line 3770 def canonical_volume_link @canonical_volume_link end |
#categories ⇒ Array<String>
A list of subject categories, such as "Fiction", "Suspense", etc.
Corresponds to the JSON property categories
3775 3776 3777 |
# File 'generated/google/apis/books_v1/classes.rb', line 3775 def categories @categories end |
#comics_content ⇒ Boolean Also known as: comics_content?
Whether the volume has comics content.
Corresponds to the JSON property comicsContent
3780 3781 3782 |
# File 'generated/google/apis/books_v1/classes.rb', line 3780 def comics_content @comics_content end |
#content_version ⇒ String
An identifier for the version of the volume content (text & images). (In LITE
projection)
Corresponds to the JSON property contentVersion
3787 3788 3789 |
# File 'generated/google/apis/books_v1/classes.rb', line 3787 def content_version @content_version end |
#description ⇒ String
A synopsis of the volume. The text of the description is formatted in HTML and
includes simple formatting elements, such as b, i, and br tags. (In LITE
projection.)
Corresponds to the JSON property description
3794 3795 3796 |
# File 'generated/google/apis/books_v1/classes.rb', line 3794 def description @description end |
#dimensions ⇒ Google::Apis::BooksV1::Volume::VolumeInfo::Dimensions
Physical dimensions of this volume.
Corresponds to the JSON property dimensions
3799 3800 3801 |
# File 'generated/google/apis/books_v1/classes.rb', line 3799 def dimensions @dimensions end |
#image_links ⇒ Google::Apis::BooksV1::Volume::VolumeInfo::ImageLinks
A list of image links for all the sizes that are available. (In LITE
projection.)
Corresponds to the JSON property imageLinks
3805 3806 3807 |
# File 'generated/google/apis/books_v1/classes.rb', line 3805 def image_links @image_links end |
#industry_identifiers ⇒ Array<Google::Apis::BooksV1::Volume::VolumeInfo::IndustryIdentifier>
Industry standard identifiers for this volume.
Corresponds to the JSON property industryIdentifiers
3810 3811 3812 |
# File 'generated/google/apis/books_v1/classes.rb', line 3810 def industry_identifiers @industry_identifiers end |
#info_link ⇒ String
URL to view information about this volume on the Google Books site. (In LITE
projection)
Corresponds to the JSON property infoLink
3816 3817 3818 |
# File 'generated/google/apis/books_v1/classes.rb', line 3816 def info_link @info_link end |
#language ⇒ String
Best language for this volume (based on content). It is the two-letter ISO 639-
1 code such as 'fr', 'en', etc.
Corresponds to the JSON property language
3822 3823 3824 |
# File 'generated/google/apis/books_v1/classes.rb', line 3822 def language @language end |
#main_category ⇒ String
The main category to which this volume belongs. It will be the category from
the categories list returned below that has the highest weight.
Corresponds to the JSON property mainCategory
3828 3829 3830 |
# File 'generated/google/apis/books_v1/classes.rb', line 3828 def main_category @main_category end |
#maturity_rating ⇒ String
Corresponds to the JSON property maturityRating
3833 3834 3835 |
# File 'generated/google/apis/books_v1/classes.rb', line 3833 def @maturity_rating end |
#page_count ⇒ Fixnum
Total number of pages as per publisher metadata.
Corresponds to the JSON property pageCount
3838 3839 3840 |
# File 'generated/google/apis/books_v1/classes.rb', line 3838 def page_count @page_count end |
#panelization_summary ⇒ Google::Apis::BooksV1::Volume::VolumeInfo::PanelizationSummary
A top-level summary of the panelization info in this volume.
Corresponds to the JSON property panelizationSummary
3843 3844 3845 |
# File 'generated/google/apis/books_v1/classes.rb', line 3843 def panelization_summary @panelization_summary end |
#preview_link ⇒ String
URL to preview this volume on the Google Books site.
Corresponds to the JSON property previewLink
3848 3849 3850 |
# File 'generated/google/apis/books_v1/classes.rb', line 3848 def preview_link @preview_link end |
#print_type ⇒ String
Type of publication of this volume. Possible values are BOOK or MAGAZINE.
Corresponds to the JSON property printType
3853 3854 3855 |
# File 'generated/google/apis/books_v1/classes.rb', line 3853 def print_type @print_type end |
#printed_page_count ⇒ Fixnum
Total number of printed pages in generated pdf representation.
Corresponds to the JSON property printedPageCount
3858 3859 3860 |
# File 'generated/google/apis/books_v1/classes.rb', line 3858 def printed_page_count @printed_page_count end |
#published_date ⇒ String
Date of publication. (In LITE projection.)
Corresponds to the JSON property publishedDate
3863 3864 3865 |
# File 'generated/google/apis/books_v1/classes.rb', line 3863 def published_date @published_date end |
#publisher ⇒ String
Publisher of this volume. (In LITE projection.)
Corresponds to the JSON property publisher
3868 3869 3870 |
# File 'generated/google/apis/books_v1/classes.rb', line 3868 def publisher @publisher end |
#ratings_count ⇒ Fixnum
The number of review ratings for this volume.
Corresponds to the JSON property ratingsCount
3873 3874 3875 |
# File 'generated/google/apis/books_v1/classes.rb', line 3873 def @ratings_count end |
#reading_modes ⇒ Object
The reading modes available for this volume.
Corresponds to the JSON property readingModes
3878 3879 3880 |
# File 'generated/google/apis/books_v1/classes.rb', line 3878 def reading_modes @reading_modes end |
#sample_page_count ⇒ Fixnum
Total number of sample pages as per publisher metadata.
Corresponds to the JSON property samplePageCount
3883 3884 3885 |
# File 'generated/google/apis/books_v1/classes.rb', line 3883 def sample_page_count @sample_page_count end |
#series_info ⇒ Google::Apis::BooksV1::Volumeseriesinfo
Corresponds to the JSON property seriesInfo
3888 3889 3890 |
# File 'generated/google/apis/books_v1/classes.rb', line 3888 def series_info @series_info end |
#subtitle ⇒ String
Volume subtitle. (In LITE projection.)
Corresponds to the JSON property subtitle
3893 3894 3895 |
# File 'generated/google/apis/books_v1/classes.rb', line 3893 def subtitle @subtitle end |
#title ⇒ String
Volume title. (In LITE projection.)
Corresponds to the JSON property title
3898 3899 3900 |
# File 'generated/google/apis/books_v1/classes.rb', line 3898 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 |
# File 'generated/google/apis/books_v1/classes.rb', line 3905 def update!(**args) @allow_anon_logging = args[:allow_anon_logging] if args.key?(:allow_anon_logging) @authors = args[:authors] if args.key?(:authors) @average_rating = args[:average_rating] if args.key?(:average_rating) @canonical_volume_link = args[:canonical_volume_link] if args.key?(:canonical_volume_link) @categories = args[:categories] if args.key?(:categories) @comics_content = args[:comics_content] if args.key?(:comics_content) @content_version = args[:content_version] if args.key?(:content_version) @description = args[:description] if args.key?(:description) @dimensions = args[:dimensions] if args.key?(:dimensions) @image_links = args[:image_links] if args.key?(:image_links) @industry_identifiers = args[:industry_identifiers] if args.key?(:industry_identifiers) @info_link = args[:info_link] if args.key?(:info_link) @language = args[:language] if args.key?(:language) @main_category = args[:main_category] if args.key?(:main_category) @maturity_rating = args[:maturity_rating] if args.key?(:maturity_rating) @page_count = args[:page_count] if args.key?(:page_count) @panelization_summary = args[:panelization_summary] if args.key?(:panelization_summary) @preview_link = args[:preview_link] if args.key?(:preview_link) @print_type = args[:print_type] if args.key?(:print_type) @printed_page_count = args[:printed_page_count] if args.key?(:printed_page_count) @published_date = args[:published_date] if args.key?(:published_date) @publisher = args[:publisher] if args.key?(:publisher) @ratings_count = args[:ratings_count] if args.key?(:ratings_count) @reading_modes = args[:reading_modes] if args.key?(:reading_modes) @sample_page_count = args[:sample_page_count] if args.key?(:sample_page_count) @series_info = args[:series_info] if args.key?(:series_info) @subtitle = args[:subtitle] if args.key?(:subtitle) @title = args[:title] if args.key?(:title) end |