Class: Google::Apis::BooksV1::Volume::VolumeInfo::Dimensions
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Volume::VolumeInfo::Dimensions
- 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
-
#height ⇒ String
Height or length of this volume (in cm).
-
#thickness ⇒ String
Thickness of this volume (in cm).
-
#width ⇒ String
Width of this volume (in cm).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Dimensions
constructor
A new instance of Dimensions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Dimensions
Returns a new instance of Dimensions.
4055 4056 4057 |
# File 'generated/google/apis/books_v1/classes.rb', line 4055 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ String
Height or length of this volume (in cm).
Corresponds to the JSON property height
4043 4044 4045 |
# File 'generated/google/apis/books_v1/classes.rb', line 4043 def height @height end |
#thickness ⇒ String
Thickness of this volume (in cm).
Corresponds to the JSON property thickness
4048 4049 4050 |
# File 'generated/google/apis/books_v1/classes.rb', line 4048 def thickness @thickness end |
#width ⇒ String
Width of this volume (in cm).
Corresponds to the JSON property width
4053 4054 4055 |
# File 'generated/google/apis/books_v1/classes.rb', line 4053 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4060 4061 4062 4063 4064 |
# File 'generated/google/apis/books_v1/classes.rb', line 4060 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 |