Class: Google::Apis::GanV1beta1::CcOffer::BonusReward
- Inherits:
-
Object
- Object
- Google::Apis::GanV1beta1::CcOffer::BonusReward
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/gan_v1beta1/classes.rb,
generated/google/apis/gan_v1beta1/representations.rb,
generated/google/apis/gan_v1beta1/representations.rb
Instance Attribute Summary collapse
-
#amount ⇒ Float
How many units of reward will be granted.
-
#details ⇒ String
The circumstances under which this rule applies, for example, booking a flight via Orbitz.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BonusReward
constructor
A new instance of BonusReward.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BonusReward
Returns a new instance of BonusReward.
642 643 644 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 642 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Float
How many units of reward will be granted.
Corresponds to the JSON property amount
634 635 636 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 634 def amount @amount end |
#details ⇒ String
The circumstances under which this rule applies, for example, booking a flight
via Orbitz.
Corresponds to the JSON property details
640 641 642 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 640 def details @details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
647 648 649 650 |
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 647 def update!(**args) @amount = args[:amount] if args.key?(:amount) @details = args[:details] if args.key?(:details) end |