Sha256: 3c1e9531c32a1e2f6c1c0c7d46b595c787c5361f810ab364917f7f0129f83448

Contents?: true

Size: 672 Bytes

Versions: 1

Compression:

Stored size: 672 Bytes

Contents

# 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', { ... })
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ask-ruby-0.0.2 README.md