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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Dimensions
Returns a new instance of Dimensions
3843 3844 3845 |
# File 'generated/google/apis/books_v1/classes.rb', line 3843 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
3831 3832 3833 |
# File 'generated/google/apis/books_v1/classes.rb', line 3831 def height @height end |
#thickness ⇒ String
Thickness of this volume (in cm).
Corresponds to the JSON property thickness
3836 3837 3838 |
# File 'generated/google/apis/books_v1/classes.rb', line 3836 def thickness @thickness end |
#width ⇒ String
Width of this volume (in cm).
Corresponds to the JSON property width
3841 3842 3843 |
# File 'generated/google/apis/books_v1/classes.rb', line 3841 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3848 3849 3850 3851 3852 |
# File 'generated/google/apis/books_v1/classes.rb', line 3848 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 |