Class: Google::Apis::MerchantapiInventoriesV1beta::ListLocalInventoriesResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_inventories_v1beta/classes.rb,
lib/google/apis/merchantapi_inventories_v1beta/representations.rb,
lib/google/apis/merchantapi_inventories_v1beta/representations.rb

Overview

Response message for the ListLocalInventories method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListLocalInventoriesResponse

Returns a new instance of ListLocalInventoriesResponse.



121
122
123
# File 'lib/google/apis/merchantapi_inventories_v1beta/classes.rb', line 121

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#local_inventoriesArray<Google::Apis::MerchantapiInventoriesV1beta::LocalInventory>

The LocalInventory resources for the given product from the specified account. Corresponds to the JSON property localInventories



113
114
115
# File 'lib/google/apis/merchantapi_inventories_v1beta/classes.rb', line 113

def local_inventories
  @local_inventories
end

#next_page_tokenString

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


119
120
121
# File 'lib/google/apis/merchantapi_inventories_v1beta/classes.rb', line 119

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



126
127
128
129
# File 'lib/google/apis/merchantapi_inventories_v1beta/classes.rb', line 126

def update!(**args)
  @local_inventories = args[:local_inventories] if args.key?(:local_inventories)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end