# The ask. Ruby Client ## Initialization Intialize the library with your API key. If using Rails, just create `config/initializers/ask.rb`. If using anything else, make sure to require the file. ``` Ask.api_token = '12345678901234567890' ``` ## NPS ### Schedule a survey to go out now. ``` Ask.schedule_nps('test@example.com') ``` Name, delay and properties are optional. ``` Ask.schedule_nps('test@example.com', 'Test User', '1 day', { cohort: 'facebook', location: '1600 Pennsylvania Ave, Washington DC 20001', tags: 'foo, bar, baz'}) ``` ### Schedule a survey to go out in a week ``` Ask.schedule_nps('test@example.com, 'Test User', 'one week', { ... }) ```