Module: PublicLocations

Included in:
PublicEcommerce
Defined in:
lib/pub/ecommerce/locations.rb

Instance Method Summary collapse

Instance Method Details

#get_locations(options = nil, use_post = true) ⇒ Object

Get Locations.

Get all locations.

Parameters

options

(Hash) – List of Resource collection Options shown above can be used as parameter.

use_post

(Boolean) – Variable to determine if the request is by ‘post’ or ‘get’ functions.

First Example

@data = @mints_pub.get_locations

Second Example

options = { fields: "title" }
@data = @mints_pub.get_locations(options)

Third Example

options = { fields: "title" }
@data = @mints_pub.get_locations(options, false)


22
23
24
# File 'lib/pub/ecommerce/locations.rb', line 22

def get_locations(options = nil, use_post = true)
  get_query_results('/ecommerce/locations', options, use_post)
end