twingly / twingly-search-api-ruby

:gem: Twingly Blog Search API in Ruby
https://developer.twingly.com/
MIT License
4 stars 0 forks source link

Coordinates on the Post object #68

Open dentarg opened 7 years ago

dentarg commented 7 years ago

We have this now

[Hash] coordinates a hash containing :latitude and :longitude

But I think it's a bit inconsistent that we provide access to these attributes via a Hash. We could simplify things by setting latitude and longitude directly on the Post object.

I also think we should provide a predicate method coordinates? on the Post object.

When we do this, we can deprecate the coordinates attribute.