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

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

Physical dimensions of this volume.

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

Returns a new instance of Dimensions



3829
3830
3831
# File 'generated/google/apis/books_v1/classes.rb', line 3829

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

Instance Attribute Details

#heightString

Height or length of this volume (in cm). Corresponds to the JSON property height

Returns:

  • (String)


3817
3818
3819
# File 'generated/google/apis/books_v1/classes.rb', line 3817

def height
  @height
end

#thicknessString

Thickness of this volume (in cm). Corresponds to the JSON property thickness

Returns:

  • (String)


3822
3823
3824
# File 'generated/google/apis/books_v1/classes.rb', line 3822

def thickness
  @thickness
end

#widthString

Width of this volume (in cm). Corresponds to the JSON property width

Returns:

  • (String)


3827
3828
3829
# File 'generated/google/apis/books_v1/classes.rb', line 3827

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3834
3835
3836
3837
3838
# File 'generated/google/apis/books_v1/classes.rb', line 3834

def update!(**args)
  @height = args[:height] if args.key?(:height)
  @thickness = args[:thickness] if args.key?(:thickness)
  @width = args[:width] if args.key?(:width)
end