Class: Google::Apis::ContentV2_1::ListPromotionResponse
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ListPromotionResponse
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Response message for Promotions.List method.
Instance Attribute Summary collapse
-
#next_page_token ⇒ String
A token, which can be sent as
page_token
to retrieve the next page. -
#promotions ⇒ Array<Google::Apis::ContentV2_1::Promotion>
List of all available promotions for the merchant.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListPromotionResponse
constructor
A new instance of ListPromotionResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListPromotionResponse
Returns a new instance of ListPromotionResponse.
6433 6434 6435 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6433 def initialize(**args) update!(**args) end |
Instance Attribute Details
#next_page_token ⇒ String
A token, which can be sent as page_token
to retrieve the next page. If this
field is omitted, there are no subsequent pages.
Corresponds to the JSON property nextPageToken
6426 6427 6428 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6426 def next_page_token @next_page_token end |
#promotions ⇒ Array<Google::Apis::ContentV2_1::Promotion>
List of all available promotions for the merchant.
Corresponds to the JSON property promotions
6431 6432 6433 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6431 def promotions @promotions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6438 6439 6440 6441 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6438 def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @promotions = args[:promotions] if args.key?(:promotions) end |