Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaUnitInfo
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaUnitInfo
- 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) ⇒ GoogleCloudBillingBillingaccountpricesV1betaUnitInfo
constructor
A new instance of GoogleCloudBillingBillingaccountpricesV1betaUnitInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingBillingaccountpricesV1betaUnitInfo
Returns a new instance of GoogleCloudBillingBillingaccountpricesV1betaUnitInfo.
1185 1186 1187 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1185 def initialize(**args) update!(**args) end |
Instance Attribute Details
#unit ⇒ String
Shorthand for the unit. Example: GiBy.mo.
Corresponds to the JSON property unit
1170 1171 1172 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1170 def unit @unit end |
#unit_description ⇒ String
Human-readable description of the unit. Example: gibibyte month.
Corresponds to the JSON property unitDescription
1175 1176 1177 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1175 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
1183 1184 1185 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1183 def unit_quantity @unit_quantity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1190 1191 1192 1193 1194 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1190 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 |