Sha256: 6c8aff3a9f77b17f8d40fc12f87674025c7a17a442351111136d9c63c7913d25
Contents?: true
Size: 408 Bytes
Versions: 2
Compression:
Stored size: 408 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift File.join(File.dirname(__FILE__), *%w(.. lib)) require 'VIAJERO' query = ARGV[0] unless query puts 'at least one argument is need for query method' exit(1) end unless ENV['GOOGLE_API'] puts 'you haven\'t set your environment variable yet' exit(1) end google_rating = Google::GooglePlaceRating.find(query: query) rating = google_rating.return_rating puts rating
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
VIAJERO-0.1.74 | bin/googleplace |
VIAJERO-0.1.73 | bin/googleplace |