pyr 0.2.8 → 0.2.9

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: c3e03fab2f582fb22854f79058070eb513013382
4
- data.tar.gz: e6006b41280a46209a80e379d8c5fb8e29c92928
3
+ metadata.gz: e1491c2bf3745ed6129b38b129f867e3e45c411c
4
+ data.tar.gz: a9117f49800abfef2b3c80c4078e6ca2679db14f
5
5
  SHA512:
6
- metadata.gz: 19642b632c349768ea882b1cc3d0f009f9b1387fb1e350afc39b2c567f717acaf393df9709c30eaaa6a990810e5652c5e858afb159358904e21afa877b48ea30
7
- data.tar.gz: 6d2ad2f9c5ad20b1413e108d9fd4483444e72c5c7ff978f9679806e6d472bc99b872b3cb1d986331c047695c691f127b6bd9aed036827426f03b51c5ff73dc77
6
+ metadata.gz: ae1fce84b54cdc4d868b087f5c6d1550d08d9498f174214096feca50772da3da9f00c79b8784dbc8257158e810bda35c471b35b1f5cdcc99d5572cfd77263a6b
7
+ data.tar.gz: bf442cd044a7cdcbe29b75e9a4448043e73d8c78ba43671388768ee26ff0782ae02cd2487d02673ffca81f6c9b39ee1467ee02cd595391c694a83aa2ef6fe91c
data/lib/pyr/response.rb CHANGED
@@ -7,34 +7,35 @@ module PYR
7
7
  # # => #<PYR::Response:0x007fe8f90829f8 ... >
8
8
  class Response
9
9
  # Returns a hash of the Raw JSON response
10
- # response.body # => { ... }
10
+ #
11
+ # response.body # => { ... }
11
12
  attr_reader :body
12
13
  # Returns a string of the URI path
13
- # == Example
14
- # response.path # => 'reps/S000033'
14
+ #
15
+ # response.path # => 'reps/S000033'
15
16
  attr_reader :path
16
17
  # Returns an integer of the HTTP status code
17
- # == Example
18
- # response.code # => 200
18
+ #
19
+ # response.code # => 200
19
20
  attr_reader :code
20
21
  # Returns a string of the response HTTP reason phrase
21
- # == Example
22
- # response.reason_phrase # => "OK"
22
+ #
23
+ # response.reason_phrase # => "OK"
23
24
  attr_reader :reason_phrase
24
25
  # Returns a hash of the response HTTP headers
25
- # == Example
26
- # response.headers # => {"server"=>"Cowboy", "connection"=>"close", ... }
26
+ #
27
+ # response.headers # => {"server"=>"Cowboy", "connection"=>"close", ... }
27
28
  attr_reader :headers
28
29
  # Returns a collection of PYR::ResponseObjects representing API objects
29
- # == Example
30
- # response.objects
31
- # # => #<PYR::RepRelation [#<PYR::Rep ... >]>
32
- # response.objects.first.office_locations
33
- # # => #<PYR::OfficeLocationRelation [#<PYR::OfficeLocation ... >]>
30
+ #
31
+ # response.objects
32
+ # # => #<PYR::RepRelation [#<PYR::Rep ... >]>
33
+ # response.objects.first.office_locations
34
+ # # => #<PYR::OfficeLocationRelation [#<PYR::OfficeLocation ... >]>
34
35
  attr_reader :objects
35
36
  # Returns a symbol representing the Responding API controller
36
- # == Example
37
- # response.controller # => :reps
37
+ #
38
+ # response.controller # => :reps
38
39
  attr_reader :controller
39
40
 
40
41
  def initialize(uri: nil, resource: nil, response_object: nil)
data/lib/pyr/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PYR
4
- VERSION = '0.2.8' # :nodoc:
4
+ VERSION = '0.2.9' # :nodoc:
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pyr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. Simon Borg