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
627 628 629 |
# File 'generated/google/apis/partners_v2/classes.rb', line 627 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
615 616 617 |
# File 'generated/google/apis/partners_v2/classes.rb', line 615 def available_offers @available_offers end |
#no_offer_reason ⇒ String
Reason why no Offers are available.
Corresponds to the JSON property noOfferReason
625 626 627 |
# File 'generated/google/apis/partners_v2/classes.rb', line 625 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
620 621 622 |
# File 'generated/google/apis/partners_v2/classes.rb', line 620 def @response_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
632 633 634 635 636 |
# File 'generated/google/apis/partners_v2/classes.rb', line 632 def update!(**args) @available_offers = args[:available_offers] if args.key?(:available_offers) @response_metadata = args[:response_metadata] if args.key?(:response_metadata) @no_offer_reason = args[:no_offer_reason] if args.key?(:no_offer_reason) end |