twitter-status-bot/.gems/gems/twitter-5.11.0/lib/twitter/geo/point.rb

21 lines
365 B
Ruby

require 'twitter/geo'
module Twitter
class Geo
class Point < Twitter::Geo
# @return [Integer]
def latitude
coordinates[0]
end
alias_method :lat, :latitude
# @return [Integer]
def longitude
coordinates[1]
end
alias_method :long, :longitude
alias_method :lng, :longitude
end
end
end