class Chebyte::Location
Public Class Methods
new(response)
click to toggle source
# File lib/ruby-yql.rb, line 125 def initialize(response) @response = response end
Public Instance Methods
coords()
click to toggle source
# File lib/ruby-yql.rb, line 137 def coords "#{latitude}, #{longitude}" end
latitude()
click to toggle source
# File lib/ruby-yql.rb, line 129 def latitude (@response/"centroid").each{|location| return (location/"latitude").text} end
longitude()
click to toggle source
# File lib/ruby-yql.rb, line 133 def longitude (@response/"centroid").each{|location| return (location/"longitude").text} end