petfinder-wrap 1.0.2 → 1.0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ab6b7c94720a53888477c2c8519fbc46e8bc7cf
4
- data.tar.gz: e5f5748b5e3be165aae7869decedcbe88470c2e5
3
+ metadata.gz: d5c712696baf50637e3fe886553272e5c1cc305f
4
+ data.tar.gz: c4d747fc84d3cd994320f8ec6c0bc7e8682dc330
5
5
  SHA512:
6
- metadata.gz: 803522b07aca748be568a07c66a204658418541e4c401cd51b51f5cfb7d7aeff208fa0d57c714ea1fa6b8eb3cfaafac79f3268bab2e821e803b1af5f0d11e6ef
7
- data.tar.gz: c86cb53eadd15c028316dcf31e56cc7fa6284df39b766917ed5770446ac183e307a404fe47499f20e8aa8efed5fcb0134a28de5da64bb341d269957d6565e4ba
6
+ metadata.gz: 5f93727278b51da53dd45215af7bb7e99593b9476af7401aff97546d4af52e9271824632cb51a3986ab08990d97d7610b9c09344c1e2d8ac050f7f7c805fa278
7
+ data.tar.gz: 8d3d5d8d67d0a49560cb6d4801a81d1b6ec344417d3aafbac8be22e31998c13509e986040688f686aa7636c8b9092ceb6022a508b61526ccc729d99230bc1568
data/README.md CHANGED
@@ -45,8 +45,11 @@ Additionally, try methods like
45
45
  ```ruby
46
46
  pet = client.find_pet("38747365")
47
47
  pet.name # => returns the pet's name
48
- pet.contact # => returns a hash of contact info
49
48
  pet.photos # => returns an array of Photo objects, with multiple size urls accessible by .small, .medium, .large, .thumbnail, .tiny
49
+ pet.phone
50
+ pet.address1
51
+ pet.city
52
+ pet.zip
50
53
  ```
51
54
  the same should function for shelters.
52
55
 
@@ -6,7 +6,7 @@ require_relative 'petfinder/client'
6
6
  require 'open-uri'
7
7
 
8
8
  module Petfinder
9
- VERSION = "1.0.2"
9
+ VERSION = "1.0.2.1"
10
10
 
11
11
  class Error < StandardError; end
12
12
 
@@ -11,6 +11,8 @@ module Petfinder
11
11
  @attributes.dig(camelName, "$t")
12
12
  elsif @attributes.dig(name, "$t")
13
13
  @attributes.dig(name, "$t")
14
+ elsif @attributes.dig("contact", name, "$t")
15
+ @attributes.dig("contact", name, "$t")
14
16
  else
15
17
  @attributes["#{name}"]
16
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: petfinder-wrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro De Ona