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



627
628
629
# File 'generated/google/apis/partners_v2/classes.rb', line 627

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



615
616
617
# File 'generated/google/apis/partners_v2/classes.rb', line 615

def available_offers
  @available_offers
end

#no_offer_reasonString

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

Returns:

  • (String)


625
626
627
# File 'generated/google/apis/partners_v2/classes.rb', line 625

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



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