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

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

A list of image links for all the sizes that are available. (In LITE projection.)

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

Returns a new instance of ImageLinks



3896
3897
3898
# File 'generated/google/apis/books_v1/classes.rb', line 3896

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

Instance Attribute Details

#extra_largeString

Image link for extra large size (width of ~1280 pixels). (In LITE projection) Corresponds to the JSON property extraLarge

Returns:

  • (String)


3869
3870
3871
# File 'generated/google/apis/books_v1/classes.rb', line 3869

def extra_large
  @extra_large
end

#largeString

Image link for large size (width of ~800 pixels). (In LITE projection) Corresponds to the JSON property large

Returns:

  • (String)


3874
3875
3876
# File 'generated/google/apis/books_v1/classes.rb', line 3874

def large
  @large
end

#mediumString

Image link for medium size (width of ~575 pixels). (In LITE projection) Corresponds to the JSON property medium

Returns:

  • (String)


3879
3880
3881
# File 'generated/google/apis/books_v1/classes.rb', line 3879

def medium
  @medium
end

#smallString

Image link for small size (width of ~300 pixels). (In LITE projection) Corresponds to the JSON property small

Returns:

  • (String)


3884
3885
3886
# File 'generated/google/apis/books_v1/classes.rb', line 3884

def small
  @small
end

#small_thumbnailString

Image link for small thumbnail size (width of ~80 pixels). (In LITE projection) Corresponds to the JSON property smallThumbnail

Returns:

  • (String)


3889
3890
3891
# File 'generated/google/apis/books_v1/classes.rb', line 3889

def small_thumbnail
  @small_thumbnail
end

#thumbnailString

Image link for thumbnail size (width of ~128 pixels). (In LITE projection) Corresponds to the JSON property thumbnail

Returns:

  • (String)


3894
3895
3896
# File 'generated/google/apis/books_v1/classes.rb', line 3894

def thumbnail
  @thumbnail
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3901
3902
3903
3904
3905
3906
3907
3908
# File 'generated/google/apis/books_v1/classes.rb', line 3901

def update!(**args)
  @extra_large = args[:extra_large] if args.key?(:extra_large)
  @large = args[:large] if args.key?(:large)
  @medium = args[:medium] if args.key?(:medium)
  @small = args[:small] if args.key?(:small)
  @small_thumbnail = args[:small_thumbnail] if args.key?(:small_thumbnail)
  @thumbnail = args[:thumbnail] if args.key?(:thumbnail)
end