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.
1911 1912 1913 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1911 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
1901 1902 1903 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1901 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.
Corresponds to the JSON property startAmount
1909 1910 1911 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1909 def start_amount @start_amount end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1916 1917 1918 1919 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1916 def update!(**args) @list_price = args[:list_price] if args.key?(:list_price) @start_amount = args[:start_amount] if args.key?(:start_amount) end |