Class: Google::Apis::BooksV1::Volume::VolumeInfo

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

General volume information.

Defined Under Namespace

Classes: Dimensions, ImageLinks, IndustryIdentifier, PanelizationSummary

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

Returns a new instance of VolumeInfo



3656
3657
3658
# File 'generated/google/apis/books_v1/classes.rb', line 3656

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

Instance Attribute Details

#allow_anon_loggingBoolean Also known as: allow_anon_logging?

Whether anonymous logging should be allowed. Corresponds to the JSON property allowAnonLogging

Returns:

  • (Boolean)


3516
3517
3518
# File 'generated/google/apis/books_v1/classes.rb', line 3516

def allow_anon_logging
  @allow_anon_logging
end

#authorsArray<String>

The names of the authors and/or editors for this volume. (In LITE projection) Corresponds to the JSON property authors

Returns:

  • (Array<String>)


3522
3523
3524
# File 'generated/google/apis/books_v1/classes.rb', line 3522

def authors
  @authors
end

#average_ratingFloat

The mean review rating for this volume. (min = 1.0, max = 5.0) Corresponds to the JSON property averageRating

Returns:

  • (Float)


3527
3528
3529
# File 'generated/google/apis/books_v1/classes.rb', line 3527

def average_rating
  @average_rating
end

Canonical URL for a volume. (In LITE projection.) Corresponds to the JSON property canonicalVolumeLink

Returns:

  • (String)


3532
3533
3534
# File 'generated/google/apis/books_v1/classes.rb', line 3532

def canonical_volume_link
  @canonical_volume_link
end

#categoriesArray<String>

A list of subject categories, such as "Fiction", "Suspense", etc. Corresponds to the JSON property categories

Returns:

  • (Array<String>)


3537
3538
3539
# File 'generated/google/apis/books_v1/classes.rb', line 3537

def categories
  @categories
end

#content_versionString

An identifier for the version of the volume content (text & images). (In LITE projection) Corresponds to the JSON property contentVersion

Returns:

  • (String)


3543
3544
3545
# File 'generated/google/apis/books_v1/classes.rb', line 3543

def content_version
  @content_version
end

#descriptionString

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

Returns:

  • (String)


3550
3551
3552
# File 'generated/google/apis/books_v1/classes.rb', line 3550

def description
  @description
end

#dimensionsGoogle::Apis::BooksV1::Volume::VolumeInfo::Dimensions

Physical dimensions of this volume. Corresponds to the JSON property dimensions



3555
3556
3557
# File 'generated/google/apis/books_v1/classes.rb', line 3555

def dimensions
  @dimensions
end

A list of image links for all the sizes that are available. (In LITE projection.) Corresponds to the JSON property imageLinks



3561
3562
3563
# File 'generated/google/apis/books_v1/classes.rb', line 3561

def image_links
  @image_links
end

#industry_identifiersArray<Google::Apis::BooksV1::Volume::VolumeInfo::IndustryIdentifier>

Industry standard identifiers for this volume. Corresponds to the JSON property industryIdentifiers



3566
3567
3568
# File 'generated/google/apis/books_v1/classes.rb', line 3566

def industry_identifiers
  @industry_identifiers
end

URL to view information about this volume on the Google Books site. (In LITE projection) Corresponds to the JSON property infoLink

Returns:

  • (String)


3572
3573
3574
# File 'generated/google/apis/books_v1/classes.rb', line 3572

def info_link
  @info_link
end

#languageString

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

Returns:

  • (String)


3578
3579
3580
# File 'generated/google/apis/books_v1/classes.rb', line 3578

def language
  @language
end

#main_categoryString

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

Returns:

  • (String)


3584
3585
3586
# File 'generated/google/apis/books_v1/classes.rb', line 3584

def main_category
  @main_category
end

#maturity_ratingString

Corresponds to the JSON property maturityRating

Returns:

  • (String)


3589
3590
3591
# File 'generated/google/apis/books_v1/classes.rb', line 3589

def maturity_rating
  @maturity_rating
end

#page_countFixnum

Total number of pages as per publisher metadata. Corresponds to the JSON property pageCount

Returns:

  • (Fixnum)


3594
3595
3596
# File 'generated/google/apis/books_v1/classes.rb', line 3594

def page_count
  @page_count
end

#panelization_summaryGoogle::Apis::BooksV1::Volume::VolumeInfo::PanelizationSummary

A top-level summary of the panelization info in this volume. Corresponds to the JSON property panelizationSummary



3599
3600
3601
# File 'generated/google/apis/books_v1/classes.rb', line 3599

def panelization_summary
  @panelization_summary
end

URL to preview this volume on the Google Books site. Corresponds to the JSON property previewLink

Returns:

  • (String)


3604
3605
3606
# File 'generated/google/apis/books_v1/classes.rb', line 3604

def preview_link
  @preview_link
end

Type of publication of this volume. Possible values are BOOK or MAGAZINE. Corresponds to the JSON property printType

Returns:

  • (String)


3609
3610
3611
# File 'generated/google/apis/books_v1/classes.rb', line 3609

def print_type
  @print_type
end

#printed_page_countFixnum

Total number of printed pages in generated pdf representation. Corresponds to the JSON property printedPageCount

Returns:

  • (Fixnum)


3614
3615
3616
# File 'generated/google/apis/books_v1/classes.rb', line 3614

def printed_page_count
  @printed_page_count
end

#published_dateString

Date of publication. (In LITE projection.) Corresponds to the JSON property publishedDate

Returns:

  • (String)


3619
3620
3621
# File 'generated/google/apis/books_v1/classes.rb', line 3619

def published_date
  @published_date
end

#publisherString

Publisher of this volume. (In LITE projection.) Corresponds to the JSON property publisher

Returns:

  • (String)


3624
3625
3626
# File 'generated/google/apis/books_v1/classes.rb', line 3624

def publisher
  @publisher
end

#ratings_countFixnum

The number of review ratings for this volume. Corresponds to the JSON property ratingsCount

Returns:

  • (Fixnum)


3629
3630
3631
# File 'generated/google/apis/books_v1/classes.rb', line 3629

def ratings_count
  @ratings_count
end

#reading_modesObject

The reading modes available for this volume. Corresponds to the JSON property readingModes

Returns:

  • (Object)


3634
3635
3636
# File 'generated/google/apis/books_v1/classes.rb', line 3634

def reading_modes
  @reading_modes
end

#sample_page_countFixnum

Total number of sample pages as per publisher metadata. Corresponds to the JSON property samplePageCount

Returns:

  • (Fixnum)


3639
3640
3641
# File 'generated/google/apis/books_v1/classes.rb', line 3639

def sample_page_count
  @sample_page_count
end

#series_infoGoogle::Apis::BooksV1::Volumeseriesinfo

Corresponds to the JSON property seriesInfo



3644
3645
3646
# File 'generated/google/apis/books_v1/classes.rb', line 3644

def series_info
  @series_info
end

#subtitleString

Volume subtitle. (In LITE projection.) Corresponds to the JSON property subtitle

Returns:

  • (String)


3649
3650
3651
# File 'generated/google/apis/books_v1/classes.rb', line 3649

def subtitle
  @subtitle
end

#titleString

Volume title. (In LITE projection.) Corresponds to the JSON property title

Returns:

  • (String)


3654
3655
3656
# File 'generated/google/apis/books_v1/classes.rb', line 3654

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
# File 'generated/google/apis/books_v1/classes.rb', line 3661

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)
  @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