kanazawa_city-infra 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -38,7 +38,7 @@ f = fs[0].detail # 施設の詳細な情報を取得
38
38
  puts f.summary # 施設の概要
39
39
 
40
40
  KanazawaCity::Infra.facilities(geocode: "36.5946816,136.6255726,2000") # 範囲検索
41
- KanazawaCity::Infra.facilities(genre: 1) # ジャンルのidで検索
41
+ KanazawaCity::Infra.facilities(genre: "1") # ジャンルのidで検索
42
42
  KanazawaCity::Infra.facilities(genre: genres[0]) # 取得したジャンルのオブジェクトで検索
43
43
  KanazawaCity::Infra.facilities(genre: ["12-28", "13"]) # 複数のジャンルを指定
44
44
  KanazawaCity::Infra.facilities(genre: ["1", genres[1]]) # idとオブジェクトを組み合わせることも可能
@@ -1,5 +1,5 @@
1
1
  module KanazawaCity
2
2
  module Infra
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -44,7 +44,7 @@ module KanazawaCity
44
44
  }.join(',')
45
45
  elsif options[:genre].respond_to? "query_id"
46
46
  options[:genre].query_id
47
- elsif options[:genre].kind_of? String
47
+ elsif options[:genre].kind_of?(String) || g.kind_of?(Integer)
48
48
  options[:genre]
49
49
  else
50
50
  raise ArgumentError
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kanazawa_city-infra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: