Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaRateTier
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaRateTier
- 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
-
#contract_price ⇒ Google::Apis::CloudbillingV1beta::Money
Represents an amount of money with its currency type.
-
#effective_discount_percent ⇒ Google::Apis::CloudbillingV1beta::Decimal
A representation of a decimal value, such as 2.5.
-
#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) ⇒ GoogleCloudBillingBillingaccountpricesV1betaRateTier
constructor
A new instance of GoogleCloudBillingBillingaccountpricesV1betaRateTier.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingBillingaccountpricesV1betaRateTier
Returns a new instance of GoogleCloudBillingBillingaccountpricesV1betaRateTier.
1150 1151 1152 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1150 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contract_price ⇒ Google::Apis::CloudbillingV1beta::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property contractPrice
1127 1128 1129 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1127 def contract_price @contract_price end |
#effective_discount_percent ⇒ 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 effectiveDiscountPercent
1135 1136 1137 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1135 def effective_discount_percent @effective_discount_percent end |
#list_price ⇒ Google::Apis::CloudbillingV1beta::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property listPrice
1140 1141 1142 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1140 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
1148 1149 1150 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1148 def start_amount @start_amount end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1155 1156 1157 1158 1159 1160 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1155 def update!(**args) @contract_price = args[:contract_price] if args.key?(:contract_price) @effective_discount_percent = args[:effective_discount_percent] if args.key?(:effective_discount_percent) @list_price = args[:list_price] if args.key?(:list_price) @start_amount = args[:start_amount] if args.key?(:start_amount) end |