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

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

Physical dimensions of this volume.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Dimensions

Returns a new instance of Dimensions.



4054
4055
4056
# File 'lib/google/apis/books_v1/classes.rb', line 4054

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)


4042
4043
4044
# File 'lib/google/apis/books_v1/classes.rb', line 4042

def height
  @height
end

#thicknessString

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

Returns:

  • (String)


4047
4048
4049
# File 'lib/google/apis/books_v1/classes.rb', line 4047

def thickness
  @thickness
end

#widthString

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

Returns:

  • (String)


4052
4053
4054
# File 'lib/google/apis/books_v1/classes.rb', line 4052

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4059
4060
4061
4062
4063
# File 'lib/google/apis/books_v1/classes.rb', line 4059

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