Module: PublicLocations
- Included in:
- PublicEcommerce
- Defined in:
- lib/pub/ecommerce/locations.rb
Instance Method Summary collapse
-
#get_locations(options = nil, use_post = true) ⇒ Object
Get Locations.
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
= { fields: "title" }
@data = @mints_pub.get_locations()
Third Example
= { fields: "title" }
@data = @mints_pub.get_locations(, false)
22 23 24 |
# File 'lib/pub/ecommerce/locations.rb', line 22 def get_locations( = nil, use_post = true) get_query_results('/ecommerce/locations', , use_post) end |