class CSV2API::Server

@author Jonah Ruiz <jonah@pixelhipsters.com> Contains the Sinatra-based API Server

Public Instance Methods

load_data(endpoint) click to toggle source

Loads data for response @param endpoint [String] endpoint name @return [Array<Hash>] csv data

# File lib/csv2api/server.rb, line 58
def load_data(endpoint)
  csv_file = load_csv(settings.csv_path, endpoint)
  CSV2API::Parser.new(csv_file).all
end