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


3679
3680
3681
# File 'generated/google/apis/books_v1/classes.rb', line 3679

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

Instance Attribute Details

#heightString

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


3667
3668
3669
# File 'generated/google/apis/books_v1/classes.rb', line 3667

def height
  @height
end

#thicknessString

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


3672
3673
3674
# File 'generated/google/apis/books_v1/classes.rb', line 3672

def thickness
  @thickness
end

#widthString

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


3677
3678
3679
# File 'generated/google/apis/books_v1/classes.rb', line 3677

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3684
3685
3686
3687
3688
# File 'generated/google/apis/books_v1/classes.rb', line 3684

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