Class: Google::Apis::PartnersV2::ListOffersResponse
- Inherits:
-
Object
- Object
- Google::Apis::PartnersV2::ListOffersResponse
- 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
-
#available_offers ⇒ Array<Google::Apis::PartnersV2::AvailableOffer>
Available Offers to be distributed.
-
#no_offer_reason ⇒ String
Reason why no Offers are available.
-
#response_metadata ⇒ Google::Apis::PartnersV2::ResponseMetadata
Common data that is in each API response.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListOffersResponse
constructor
A new instance of ListOffersResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_offers ⇒ Array<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_reason ⇒ String
Reason why no Offers are available.
Corresponds to the JSON property noOfferReason
1362 1363 1364 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1362 def no_offer_reason @no_offer_reason end |
#response_metadata ⇒ Google::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 |