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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/books_v1/classes.rb,
lib/google/apis/books_v1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ ImageLinks

Returns a new instance of ImageLinks.



4101
4102
4103
# File 'lib/google/apis/books_v1/classes.rb', line 4101

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)


4074
4075
4076
# File 'lib/google/apis/books_v1/classes.rb', line 4074

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)


4079
4080
4081
# File 'lib/google/apis/books_v1/classes.rb', line 4079

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)


4084
4085
4086
# File 'lib/google/apis/books_v1/classes.rb', line 4084

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)


4089
4090
4091
# File 'lib/google/apis/books_v1/classes.rb', line 4089

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)


4094
4095
4096
# File 'lib/google/apis/books_v1/classes.rb', line 4094

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)


4099
4100
4101
# File 'lib/google/apis/books_v1/classes.rb', line 4099

def thumbnail
  @thumbnail
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4106
4107
4108
4109
4110
4111
4112
4113
# File 'lib/google/apis/books_v1/classes.rb', line 4106

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