NCCConfidence 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -22
- data/lib/nccconfidence/version.rb +1 -1
- data/lib/nccconfidence.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a88bb8ebd8b427e59df5644030dbd6afb1539330
|
4
|
+
data.tar.gz: f041da3049c4ff9c01875b751d3e7303c39c8a59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7178d57b0f261b7c741dd94fa342c390035bd62a4a768d77573cdb8999c60cc2ab9f6da093375ced579b84903003f3157abdf5b5db868e70a9ad9e70c13535b
|
7
|
+
data.tar.gz: dec1e999bbe618e0b804748ac1acdf64ab3a72d489970b72e5a1fdce68bb7820abe94a10aca816cac4541bc0c850b463db724088bd4e4842bb8acb4ed657540e
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# NCCConfidence
|
2
2
|
|
3
|
-
|
3
|
+
This is a gem to allow you yo make requests to NCC Confidence's API.
|
4
4
|
|
5
|
-
|
5
|
+
It provides mechanims to allow easier creation of API requests.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -21,27 +21,16 @@ Or install it yourself as:
|
|
21
21
|
$ gem install NCCConfidence
|
22
22
|
|
23
23
|
## Usage
|
24
|
+
|
25
|
+
First set your current API key that you wish to use.
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
NCCConfidence.api_key = 's0as89234nj3jk4bjk23b4bhl4234'
|
29
|
+
```
|
30
|
+
|
31
|
+
And then make a query.
|
32
|
+
|
24
33
|
```ruby
|
25
|
-
data_filter = [
|
26
|
-
{
|
27
|
-
book: [
|
28
|
-
{ pages:[
|
29
|
-
:page_number,
|
30
|
-
{page_meta:
|
31
|
-
[
|
32
|
-
:description,
|
33
|
-
:author,
|
34
|
-
:page_name
|
35
|
-
]
|
36
|
-
}
|
37
|
-
]
|
38
|
-
}
|
39
|
-
]
|
40
|
-
}
|
41
|
-
]
|
42
|
-
|
43
|
-
build(f)
|
44
|
-
#=>[book[pages[page_number,page_meta[description,author,page_name]]]]
|
45
34
|
```
|
46
35
|
|
47
36
|
## Development
|
data/lib/nccconfidence.rb
CHANGED