mas-rad_core 0.0.24 → 0.0.25

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: 7d168cb916aab769888d542e3cef782c726ab761
4
- data.tar.gz: 7e44912d8c517b02fedc3a6503ab71a3c5216f8e
3
+ metadata.gz: d5464cce0b3dc17ad38930e42ecbc5d55aedb42b
4
+ data.tar.gz: 947dce5aa900d708140dddd808d584df49aa1dae
5
5
  SHA512:
6
- metadata.gz: daa31aaeee10731657ce3850fbc54fc80a975742b5b9c172024a0eea4c8ff0605187ec34f0f954f241a88a80bc3960501956c8c76504d56ecda27bcebf1196a0
7
- data.tar.gz: 8575ef3ef1c2c37625662f49001b3b2f09b5fbbcc73719e4b34515f5acab27e91256383d947207372901016164fa881f2743e5291d27fbd3f25e2c0cb5dcec90
6
+ metadata.gz: 0376276354c7add205e317c1f65ba34ee150ef687cf54b72f60d3182b3af846b3540255402dddb8a272d1e6eb6e969a7627742283e30381edffb31addafb90e9
7
+ data.tar.gz: 512077e1feed2e219aea990b079a92edb72697d49fe61ac66ac40160bb96d6ea7a883a188a3318a89abe300b2096ce1a3070e01f32f3520f51c30b4ad2a6b5da
@@ -1,7 +1,7 @@
1
1
  class AdviserSerializer < ActiveModel::Serializer
2
2
  self.root = false
3
3
 
4
- attributes :_id, :name, :range, :location
4
+ attributes :_id, :name, :range, :location, :range_location
5
5
 
6
6
  def _id
7
7
  object.id
@@ -17,4 +17,12 @@ class AdviserSerializer < ActiveModel::Serializer
17
17
  lon: object.longitude
18
18
  }
19
19
  end
20
+
21
+ def range_location
22
+ {
23
+ type: :circle,
24
+ coordinates: [object.longitude, object.latitude],
25
+ radius: "#{object.travel_distance}miles"
26
+ }
27
+ end
20
28
  end
@@ -1,5 +1,5 @@
1
1
  module MAS
2
2
  module RadCore
3
- VERSION = '0.0.24'
3
+ VERSION = '0.0.25'
4
4
  end
5
5
  end