Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1PercentageAdjustment
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1PercentageAdjustment
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb
Overview
An adjustment that applies a flat markup or markdown to an entire bill.
Instance Attribute Summary collapse
-
#percentage ⇒ Google::Apis::CloudchannelV1::GoogleTypeDecimal
A representation of a decimal value, such as 2.5.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1PercentageAdjustment
constructor
A new instance of GoogleCloudChannelV1PercentageAdjustment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1PercentageAdjustment
Returns a new instance of GoogleCloudChannelV1PercentageAdjustment.
2291 2292 2293 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2291 def initialize(**args) update!(**args) end |
Instance Attribute Details
#percentage ⇒ Google::Apis::CloudchannelV1::GoogleTypeDecimal
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 percentage
2289 2290 2291 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2289 def percentage @percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2296 2297 2298 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2296 def update!(**args) @percentage = args[:percentage] if args.key?(:percentage) end |