justimmo_client 0.4.1 → 0.4.2

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: 231e6a84ab9f17291beba6c6c292b9bb48e67435
4
- data.tar.gz: 9d4ac5f7cf166439d68fb2919adf5807e4f00aa6
3
+ metadata.gz: 743d21ea143573c824c8428092bdbeb434b0ea47
4
+ data.tar.gz: 536acaf70e43c05ffed35b911f0215a8ec019b23
5
5
  SHA512:
6
- metadata.gz: 49a82277b7bdcf203fcc01cef5cf7ad7e8c590fe5112267d26ab337607cd549cf397e735c9d396fd02793d667f52a0150ba6a4050dda792dbf39a3f1509fc77b
7
- data.tar.gz: 9dc8de681b9f8fb14c5e036af5d24f204e612826acdb201f2ea82dcae869bd34cafbd9f912020a2666aca94e6983824b2e03cd9d2f0b44d849c20ce3cdbe0526
6
+ metadata.gz: 95bddb14fb06461874ac4e9707ea69bef559a4afc5497d0ddaffe92cbde954d9279450be48900698c6168478480fb959f42b2d122a1c6bfe7a050454cadb5ce5
7
+ data.tar.gz: efde75d0703d31333d0f83abce57cf5c36d50f572827d57d1e37a0b4b389854c387bcdfafed3d01dcf1b4b2162a5d61cdb18b099139629c3dd021fa2c6aa7013
@@ -203,6 +203,7 @@ module JustimmoClient::V1
203
203
 
204
204
  options.add :all
205
205
  options.add :lang
206
+ options.add :id
206
207
  end
207
208
  end
208
209
  end
@@ -26,6 +26,7 @@ module JustimmoClient
26
26
  def group(groupname)
27
27
  @context = groupname.to_sym
28
28
  yield self if block_given?
29
+ @context = nil
29
30
  end
30
31
 
31
32
  def parse(options = {})
@@ -66,7 +66,7 @@ module JustimmoClient
66
66
  # @param [Symbol, String] lang
67
67
  # @return [Object, nil] A detailed realty object, or nil if it could not be found.
68
68
  def detail(id, lang: nil)
69
- xml_response = request(:realty).detail(id: id, lang: lang)
69
+ xml_response = request(:realty).detail(id, lang: lang)
70
70
  model = Struct.new(:realty).new
71
71
  representer(:realty_detail).new(model).from_xml(xml_response).realty
72
72
  rescue JustimmoClient::RetrievalFailed
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JustimmoClient
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
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.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Auernig