B
Brian Wolf
Hi,
I'm new to ruby, reading a book, "RESTful Web Services" by Richardson
and Ruby
On page 2,they have this:
#!/usr/bin/ruby -w
# amazon-book-search.rb
require 'amazon/search'
if ARGV.size != 2
puts "Usage: #{$0} [Amazon Web Services AccessKey ID] [text to search for]"
exit
end
access_key, search_request = ARGV
req = Amazon::Search::Request.new(access_key)
my question is what is "require 'amazon/search' " ?, It isnt defined in
the book as far as I can see. The out program won't run without it.
Thanks
Brian
I'm new to ruby, reading a book, "RESTful Web Services" by Richardson
and Ruby
On page 2,they have this:
#!/usr/bin/ruby -w
# amazon-book-search.rb
require 'amazon/search'
if ARGV.size != 2
puts "Usage: #{$0} [Amazon Web Services AccessKey ID] [text to search for]"
exit
end
access_key, search_request = ARGV
req = Amazon::Search::Request.new(access_key)
my question is what is "require 'amazon/search' " ?, It isnt defined in
the book as far as I can see. The out program won't run without it.
Thanks
Brian