Class: Square::Types::MeasurementUnit
- Inherits:
-
Internal::Types::Model
- Object
- Internal::Types::Model
- Square::Types::MeasurementUnit
- Defined in:
- lib/square/types/measurement_unit.rb
Overview
Represents a unit of measurement to use with a quantity, such as ounces or inches. Exactly one of the following fields are required: ‘custom_unit`, `area_unit`, `length_unit`, `volume_unit`, and `weight_unit`.
Method Summary
Methods inherited from Internal::Types::Model
#==, ===, add_extra_field_definition, coerce, extra_fields, field, fields, #initialize, #inspect, literal, load, #to_h
Methods included from Internal::Types::Type
Methods included from Internal::JSON::Serializable
Constructor Details
This class inherits a constructor from Square::Internal::Types::Model