espresso_path 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/lib/espresso_path/client.rb +23 -2
- data/lib/espresso_path/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d0fdeec53bf76b230545fe9ec874db71a9c92eb
|
4
|
+
data.tar.gz: db4af62f238708129dbd544bae504701526c75e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ac765c3b8e396c47b6f4202a40ffb5a89b4f2a8a8c88c91694f6d4fc625faa98f818d985868aa2f6b86d2cd7e8bf7ce5a1895f115df1a256cf597b170ddd419
|
7
|
+
data.tar.gz: 8de32900ba6d07a432e9d3b161f53a615d12114f0c0759acc4297b4a4706d40eb60d4af56ff80f8b98e5500f59a7fc45f0f54ae3e5c0b226d1833d4a0f08b166
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ Welcome to your EspressoPath! Espresso Path is GeoPath API Ruby Wrapper
|
|
10
10
|
Add this line to your application's Gemfile:
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
gem 'espresso_path', '~> 0.1.
|
13
|
+
gem 'espresso_path', '~> 0.1.7'
|
14
14
|
```
|
15
15
|
|
16
16
|
And then execute:
|
@@ -23,7 +23,7 @@ Or install it yourself as:
|
|
23
23
|
|
24
24
|
## Documentation
|
25
25
|
|
26
|
-
[EspressoPath Docs](http://www.rubydoc.info/
|
26
|
+
[EspressoPath Docs](http://www.rubydoc.info/github/kickinespresso/espresso_path/master)
|
27
27
|
|
28
28
|
## Testing
|
29
29
|
|
@@ -31,11 +31,13 @@ Or install it yourself as:
|
|
31
31
|
2) Add the following environment variables
|
32
32
|
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
ESPRESSO_PATH_USER_NAME=YourEmail
|
35
|
+
ESPRESSO_PATH_PASSWORD=YourPassword
|
36
|
+
|
36
37
|
|
37
38
|
3) Run tests with
|
38
39
|
|
40
|
+
|
39
41
|
rspec
|
40
42
|
|
41
43
|
|
data/lib/espresso_path/client.rb
CHANGED
@@ -155,8 +155,12 @@ module EspressoPath
|
|
155
155
|
self.class.get('/demos/categories', @options)
|
156
156
|
end
|
157
157
|
|
158
|
+
# Get the Demo Subcategories referenced by the ID
|
159
|
+
# # ==== Attributes
|
160
|
+
#
|
161
|
+
# * +id+ - The id of the object you wish to retrieve.
|
158
162
|
def demo_subcategories(id)
|
159
|
-
self.class.get("/demos/
|
163
|
+
self.class.get("/demos/subcategories/#{id}/demos", @options)
|
160
164
|
end
|
161
165
|
|
162
166
|
def market(market)
|
@@ -189,7 +193,24 @@ module EspressoPath
|
|
189
193
|
end
|
190
194
|
|
191
195
|
# Get all the panels
|
192
|
-
|
196
|
+
#
|
197
|
+
# # ==== Attributes
|
198
|
+
#
|
199
|
+
# Required - One of markets, counties, states
|
200
|
+
# * +markets+ - Optional - Market uuid
|
201
|
+
# * +counties+ - Optional - Counties FIPS
|
202
|
+
# * +states+ - Optional - State FIPS
|
203
|
+
# * +order_by+ - Optional - Columns to order output by (?order_by=operator+asc,geopath_panel_id+desc)
|
204
|
+
# * +page+ - Required - page number
|
205
|
+
# * +page_len+ - Optional - Number of items per page. Only used if param page is present (Required even though the docs say it is optional)
|
206
|
+
# * +filters+ - Optional - List of filter names
|
207
|
+
# * +operator_name+ - Optional - (If listed in filters) List of operator names to filter by
|
208
|
+
# * +plant_unit_id+ - Optional - (If listed in filters) List of plant unit ids to filter by
|
209
|
+
# * +structure_id+ - Optional - (If listed in filters) List of structure ids to filter by
|
210
|
+
# * +media_type_name+ - Optional -(If listed in filters) List of media_type_names ids to filter by
|
211
|
+
def panels(params = {}, opts = { full: true, page: 1, page_length: 100})
|
212
|
+
options = @options
|
213
|
+
options[:query] = params.merge(opts)
|
193
214
|
self.class.get('/panels', @options)
|
194
215
|
end
|
195
216
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: espresso_path
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KickinEspresso
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|