Class: Google::Apis::MerchantapiPromotionsV1beta::ListPromotionsResponse
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiPromotionsV1beta::ListPromotionsResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_promotions_v1beta/classes.rb,
lib/google/apis/merchantapi_promotions_v1beta/representations.rb,
lib/google/apis/merchantapi_promotions_v1beta/representations.rb
Overview
Response message for the ListPromotions
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::MerchantapiPromotionsV1beta::Promotion>
The processed promotions from the specified account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListPromotionsResponse
constructor
A new instance of ListPromotionsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListPromotionsResponse
Returns a new instance of ListPromotionsResponse.
515 516 517 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 515 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
508 509 510 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 508 def next_page_token @next_page_token end |
#promotions ⇒ Array<Google::Apis::MerchantapiPromotionsV1beta::Promotion>
The processed promotions from the specified account.
Corresponds to the JSON property promotions
513 514 515 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 513 def promotions @promotions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
520 521 522 523 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 520 def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @promotions = args[:promotions] if args.key?(:promotions) end |