Skip to content

Commit

Permalink
Symbolize keys
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jun 30, 2012
1 parent 5e1d765 commit d6deb9b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/t/cli.rb
Expand Up @@ -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
Expand Down

0 comments on commit d6deb9b

Please sign in to comment.