Skip to content

Commit

Permalink
v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki committed Nov 1, 2018
1 parent 413c229 commit 1932c25
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ api.ips.search("ptr_part = 'ns1'")
api.ips.stats("ptr_part = 'amazon.com'")
```

All the API response (JSON / Hash) is wrapped by [Hashie::Mash](https://github.com/intridea/hashie#mash).

It means you can access to a response through a property-like syntax.

```ruby
res = api.domain.get_by_hostname("github.com")
puts res.hostname # => "github.com"
puts res.current_dns.a.first_seen # => "2018-09-12"
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/securitytrails.
Expand Down
2 changes: 1 addition & 1 deletion lib/securitytrails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module SecurityTrails
VERSION = "0.1.1"
VERSION = "0.1.2"
end

0 comments on commit 1932c25

Please sign in to comment.