justimmo_client 0.6.2 → 0.6.3

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: 6928830a5a023c1cf09735024ca26b23fab285fc
4
- data.tar.gz: acf43eca7ca6a680dc7b6dab59b397ab77ae4b8c
3
+ metadata.gz: 8d91fd1ec8ab9bb56ad3aa5f310447739f072c5e
4
+ data.tar.gz: 95f6f01ca3c687af8436dba6f26d389a73e830f2
5
5
  SHA512:
6
- metadata.gz: 90718990f0e62c1f973a6037f34ec881d7644d7507669daa430ee6c34cc720d014ec9cf452082d467bbd2e8aa022529f349516f018f70ef8bdbf4b81d9ddecac
7
- data.tar.gz: d2f9f2076d83e6a3372dbbe5b9d7532c2a59548f4c532f0d4df2d2ad1341cafe4697bd0466b90db6b50034b10d5dabea254298a407de276cfe86bb6ff7caddf7
6
+ metadata.gz: 6d35db0035a7f905558190aa9e03d06ff75ab7e83661ac26c602aa89a3ae3798d417431f4c55faf401b9dfb9f128bfb85912a2179482c8c2062f7dabbe894554
7
+ data.tar.gz: 06daf92f1fcfe2b70f983ccc071a94322260ee5407aa97f1570a7a704bd3f02683232879dc66d73c268a17fdccb9d7f17065166c99ff788398c01658b4b01d11
@@ -78,7 +78,7 @@ module JustimmoClient::V1
78
78
  # @param [Symbol, String] lang
79
79
  # @return [Realty, nil] A detailed realty object, or nil if it could not be found.
80
80
  def detail(id, lang: nil)
81
- with_cache cache_key("realty/detail", lang: lang),
81
+ with_cache cache_key("realty/detail", id: id, lang: lang),
82
82
  on_hit: ->(cached) do
83
83
  representer(:realty, :json).new(model(:realty).new).from_json(cached)
84
84
  end,
@@ -31,7 +31,7 @@ module JustimmoClient::V1
31
31
  end
32
32
 
33
33
  def to_s
34
- ["#{zip_code} #{location}", federal_state, country&.name].compact.join(", ")
34
+ ["#{zip_code} #{location}", federal_state, country].compact.join(", ")
35
35
  end
36
36
 
37
37
  def inspect
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JustimmoClient
4
- VERSION = "0.6.2"
4
+ VERSION = "0.6.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: justimmo_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Auernig