lib/kb/models/pet_parent.rb in barkibu-kb-0.16.2 vs lib/kb/models/pet_parent.rb in barkibu-kb-0.17.0

- old
+ new

@@ -105,7 +105,13 @@ def contracts self.class.kb_client.request("#{key}/contracts").map do |contract| PetContract.from_api(contract) end end + + def referrals + self.class.kb_client.request("#{key}/referrals").map do |referral| + Referral.from_api(referral) + end + end end end