Class: Google::Apis::GanV1beta1::CcOffer::BonusReward

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#amountFloat

How many units of reward will be granted. Corresponds to the JSON property amount

Returns:

  • (Float)


634
635
636
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 634

def amount
  @amount
end

#detailsString

The circumstances under which this rule applies, for example, booking a flight via Orbitz. Corresponds to the JSON property details

Returns:

  • (String)


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