Skip to content

Commit

Permalink
updated yard
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRuiz committed Sep 2, 2019
1 parent 934881a commit c19c6c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .yardopts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
--title 'nice_http - NiceHttp -- simplest library for accessing and testing HTTP and REST resources.'
--charset utf-8
--markup markdown
'lib/*.rb' - 'lib/nice_http/*.rb' - '*.md' - 'LICENSE'
'lib/*.rb'
'lib/nice_http/*.rb'
'*.md'
'LICENSE'
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ To add the items for every specific stats to be accessed as an array you can add
```ruby
NiceHttp.add_stats(:customer, :create, started, Time.now, customer_name)
```

This will generate an items key that will contain an array of the values you added.

## Tips
Expand All @@ -610,6 +611,7 @@ resp = NiceHttp.new("https://euruko2019.org").get("/assets/images/logo.png", sav
```

* Get the data and store it like you want:

```ruby
resp = NiceHttp.new("https://euruko2019.org").get("/assets/images/logo.png")
File.open('./logo.png', 'wb') { |fp| fp.write(resp.data) }
Expand Down

0 comments on commit c19c6c4

Please sign in to comment.