class Mat::CLI

Public Class Methods

get_data(query) click to toggle source
# File lib/mat/cli.rb, line 10
def get_data(query)
  if query.to_s.match(/^\d+$/)
    Mat.api.foodstuff(query)
  else
    Mat.api.foodstuffs(query)
  end
end