Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaUnitInfo
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaUnitInfo
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbilling_v1beta/classes.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb
Overview
Encapsulates the unit information for a Rate
Instance Attribute Summary collapse
-
#unit ⇒ String
Shorthand for the unit.
-
#unit_description ⇒ String
Human-readable description of the unit.
-
#unit_quantity ⇒ Google::Apis::CloudbillingV1beta::Decimal
A representation of a decimal value, such as 2.5.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingPricesV1betaUnitInfo
constructor
A new instance of GoogleCloudBillingPricesV1betaUnitInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingPricesV1betaUnitInfo
Returns a new instance of GoogleCloudBillingPricesV1betaUnitInfo.
1944 1945 1946 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1944 def initialize(**args) update!(**args) end |
Instance Attribute Details
#unit ⇒ String
Shorthand for the unit. Example: GiBy.mo.
Corresponds to the JSON property unit
1929 1930 1931 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1929 def unit @unit end |
#unit_description ⇒ String
Human-readable description of the unit. Example: gibibyte month.
Corresponds to the JSON property unitDescription
1934 1935 1936 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1934 def unit_description @unit_description end |
#unit_quantity ⇒ Google::Apis::CloudbillingV1beta::Decimal
A representation of a decimal value, such as 2.5. Clients may convert values
into language-native decimal formats, such as Java's BigDecimal or
Python's decimal.Decimal.
Corresponds to the JSON property unitQuantity
1942 1943 1944 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1942 def unit_quantity @unit_quantity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1949 1950 1951 1952 1953 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1949 def update!(**args) @unit = args[:unit] if args.key?(:unit) @unit_description = args[:unit_description] if args.key?(:unit_description) @unit_quantity = args[:unit_quantity] if args.key?(:unit_quantity) end |