Skip to content

Commit

Permalink
Edited README.mkdn via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Jun 13, 2011
1 parent 80beac9 commit 038c70c
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions README.mkdn
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,26 @@ You can test your service in a ruby irb console:
1. Run `rake console` to start irb.
2. Instantiate your Service:

svc = Service::MyService.new(:push,
# Hash of configuration information.
{'token' => 'abc'},
# Hash of payload.
{'blah' => 'payload!'})
```ruby
svc = Service::MyService.new(:push,
# Hash of configuration information.
{'token' => 'abc'},
# Hash of payload.
{'blah' => 'payload!'})
svc.receive_push
svc.receive_push
```

3. The third argument is optional if you just want to use the sample
payload.

svc = Service::MyService.new(:push,
# Hash of configuration information.
{'token' => 'abc'})
```ruby
svc = Service::MyService.new(:push,
# Hash of configuration information.
{'token' => 'abc'})
svc.receive_push
svc.receive_push
```

You can also test your hook with the Sinatra web service:

Expand Down

0 comments on commit 038c70c

Please sign in to comment.