Class: Google::Apis::MybusinessV3::ListLocationsResponse

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

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) ⇒ ListLocationsResponse

Returns a new instance of ListLocationsResponse



233
234
235
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 233

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

Instance Attribute Details

#locationsArray<Google::Apis::MybusinessV3::Location>

The locations Corresponds to the JSON property locations



223
224
225
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 223

def locations
  @locations
end

#next_page_tokenString

If the number of locations exceeded the requested page size, this field is populated with a token to fetch the next page of locations on a subsequent call to ListLocations. If there are no more locations, this field is not be present in the response. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


231
232
233
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 231

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



238
239
240
241
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 238

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