Class: Google::Apis::PartnersV2::ListOffersResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/partners_v2/classes.rb,
generated/google/apis/partners_v2/representations.rb,
generated/google/apis/partners_v2/representations.rb

Overview

Response for ListOffer.

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) ⇒ ListOffersResponse

Returns a new instance of ListOffersResponse



1369
1370
1371
# File 'generated/google/apis/partners_v2/classes.rb', line 1369

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#available_offersArray<Google::Apis::PartnersV2::AvailableOffer>

Available Offers to be distributed. Corresponds to the JSON property availableOffers



1357
1358
1359
# File 'generated/google/apis/partners_v2/classes.rb', line 1357

def available_offers
  @available_offers
end

#no_offer_reasonString

Reason why no Offers are available. Corresponds to the JSON property noOfferReason

Returns:

  • (String)


1362
1363
1364
# File 'generated/google/apis/partners_v2/classes.rb', line 1362

def no_offer_reason
  @no_offer_reason
end

#response_metadataGoogle::Apis::PartnersV2::ResponseMetadata

Common data that is in each API response. Corresponds to the JSON property responseMetadata



1367
1368
1369
# File 'generated/google/apis/partners_v2/classes.rb', line 1367

def 
  @response_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1374
1375
1376
1377
1378
# File 'generated/google/apis/partners_v2/classes.rb', line 1374

def update!(**args)
  @available_offers = args[:available_offers] if args.key?(:available_offers)
  @no_offer_reason = args[:no_offer_reason] if args.key?(:no_offer_reason)
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
end