Problem with api
I'm trying to write a script which lists our current linodes using the API.
I've configured the API Key on the account and have installed linode ruby gem.
I've written a script, substituting Key with the API key
class LinodeApi
require 'linode'
LINODE_API_KEY = Key
def initialize
@l = Linode.new(api_key: LINODE_API_KEY)
end
def list
@l.linode.list
end
end
but when I run the script by doing
ruby list.rb
it does nothing. What am I doing wrong?