atlas_client 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,9 @@ module AtlasClient
5
5
  json = JSON.parse json if json.class == String
6
6
  @json = json
7
7
  end
8
-
8
+ def id
9
+ @json['id']
10
+ end
9
11
  def method_missing(name, *args, &block)
10
12
  @json[name.to_s]
11
13
  end
@@ -1,15 +1,7 @@
1
1
  module AtlasClient
2
- class Place
2
+ class Place < JsonObject
3
3
  require 'json'
4
-
5
- def initialize json
6
- @json = json
7
- end
8
4
 
9
- def method_missing(name, *args, &block)
10
- @json[name.to_s]
11
- end
12
-
13
5
  def pois
14
6
  @pois ||= PoiFinder.find_by_place_id id
15
7
  end
@@ -1,3 +1,3 @@
1
1
  module AtlasClient
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlas_client
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 27
4
5
  prerelease:
5
- version: 0.0.1
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 2
10
+ version: 0.0.2
6
11
  platform: ruby
7
12
  authors:
8
13
  - Chris Aitchison
@@ -55,17 +60,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
60
  requirements:
56
61
  - - ">="
57
62
  - !ruby/object:Gem::Version
63
+ hash: 3
64
+ segments:
65
+ - 0
58
66
  version: "0"
59
67
  required_rubygems_version: !ruby/object:Gem::Requirement
60
68
  none: false
61
69
  requirements:
62
70
  - - ">="
63
71
  - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
64
75
  version: "0"
65
76
  requirements: []
66
77
 
67
78
  rubyforge_project: atlas_client
68
- rubygems_version: 1.5.0
79
+ rubygems_version: 1.6.2
69
80
  signing_key:
70
81
  specification_version: 3
71
82
  summary: A client for the Atlas API