Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaRateTier
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaRateTier
- 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 a rate price tier.
Instance Attribute Summary collapse
-
#list_price ⇒ Google::Apis::CloudbillingV1beta::Money
Represents an amount of money with its currency type.
-
#start_amount ⇒ Google::Apis::CloudbillingV1beta::Decimal
A representation of a decimal value, such as 2.5.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingPricesV1betaRateTier
constructor
A new instance of GoogleCloudBillingPricesV1betaRateTier.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingPricesV1betaRateTier
Returns a new instance of GoogleCloudBillingPricesV1betaRateTier.
1904 1905 1906 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1904 def initialize(**args) update!(**args) end |
Instance Attribute Details
#list_price ⇒ Google::Apis::CloudbillingV1beta::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property listPrice
1893 1894 1895 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1893 def list_price @list_price end |
#start_amount ⇒ 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. [BigDecimal]: https://docs.oracle.com/en/java/javase/11/docs/
api/java.base/java/math/BigDecimal.html [decimal.Decimal]: https://docs.python.
org/3/library/decimal.html
Corresponds to the JSON property startAmount
1902 1903 1904 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1902 def start_amount @start_amount end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1909 1910 1911 1912 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1909 def update!(**args) @list_price = args[:list_price] if args.key?(:list_price) @start_amount = args[:start_amount] if args.key?(:start_amount) end |