Skip to content

lloydvsanchez/shiftcare_base

Repository files navigation

ShiftCare Clients Parser

Run:

  • on cmd ./app

Command list:

S - search for clients by name given a query string
CD - check for clients with duplicate emails
quit - to quit

Examples:
    'S john' - will display clients with names containing the substring 'john'
    result:
        {"id"=>1, "full_name"=>"John Doe", "email"=>"john.doe@gmail.com"}
        {"id"=>3, "full_name"=>"Alex Johnson", "email"=>"alex.johnson@hotmail.com"}

    'CD' - will list emails used by multiple clients, including the number of clients using such email
    result:
        {"jane.smith@yahoo.com"=>2}            

Tests:

  • on cmd bundle exec ruby clients_parser_spec.rb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages