Permalink
Browse files

Symbolize keys

  • Loading branch information...
sferik committed Jun 24, 2012
1 parent 5e1d765 commit d6deb9b2d1eb77ff9bbf6336834d672fa5fbadf1
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/t/cli.rb
View
@@ -686,12 +686,12 @@ def ruler
def status(status_id)
status = client.status(status_id.to_i, :include_my_retweet => false)
location = if status.place
- if status.place.name && status.place.attributes && status.place.attributes['street_address'] && status.place.attributes['locality'] && status.place.attributes['region'] && status.place.country
- [status.place.name, status.place.attributes['street_address'], status.place.attributes['locality'], status.place.attributes['region'], status.place.country].join(", ")
- elsif status.place.name && status.place.attributes && status.place.attributes['locality'] && status.place.attributes['region'] && status.place.country
- [status.place.name, status.place.attributes['locality'], status.place.attributes['region'], status.place.country].join(", ")
- elsif status.place.full_name && status.place.attributes && status.place.attributes['region'] && status.place.country
- [status.place.full_name, status.place.attributes['region'], status.place.country].join(", ")
+ if status.place.name && status.place.attributes && status.place.attributes[:street_address] && status.place.attributes[:locality] && status.place.attributes[:region] && status.place.country
+ [status.place.name, status.place.attributes[:street_address], status.place.attributes[:locality], status.place.attributes[:region], status.place.country].join(", ")
+ elsif status.place.name && status.place.attributes && status.place.attributes[:locality] && status.place.attributes[:region] && status.place.country
+ [status.place.name, status.place.attributes[:locality], status.place.attributes[:region], status.place.country].join(", ")
+ elsif status.place.full_name && status.place.attributes && status.place.attributes[:region] && status.place.country
+ [status.place.full_name, status.place.attributes[:region], status.place.country].join(", ")
elsif status.place.full_name && status.place.country
[status.place.full_name, status.place.country].join(", ")
elsif status.place.full_name

0 comments on commit d6deb9b

Please sign in to comment.