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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87b298653288823d74fcee78285998190cda0291
4
- data.tar.gz: ca9b124a34f19971d16d3ef18bcdf16baa996918
3
+ metadata.gz: 3d0fdeec53bf76b230545fe9ec874db71a9c92eb
4
+ data.tar.gz: db4af62f238708129dbd544bae504701526c75e5
5
5
  SHA512:
6
- metadata.gz: c7d58ac525072ff3d1dde8f39c6a633a3f3f178b4f10153ee77b854e096c156396aa6a61aa82dad4f033158728b10322bd206158656172a49409c9d56571f145
7
- data.tar.gz: 9c45a906d3e09c26d5ff17ce76fed3f31b3d3088f3c986e64bfdcf82e9db766d6943fc3aad574dd9090711e1f47c44c1b5611ca2e281d029c9c9c4e82910f3d1
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.6'
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/gems/espresso_path)
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
- ESPRESSO_PATH_USER_NAME=YourEmail
35
- ESPRESSO_PATH_PASSWORD=YourPassword
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
 
@@ -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/demo_subcategories/#{id}/demo", @options)
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
- def panels
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
 
@@ -1,3 +1,3 @@
1
1
  module EspressoPath
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
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.6
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-01-26 00:00:00.000000000 Z
11
+ date: 2018-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty