Module: Earthtools

Defined in:
lib/earthtools/version.rb,
lib/earthtools.rb

Overview

:nodoc:

Defined Under Namespace

Modules: VERSION

Class Method Summary collapse

Class Method Details

.height(options) ⇒ Object



27
28
29
30
# File 'lib/earthtools.rb', line 27

def self.height(options)
  height_data = XmlSimple.xml_in(RestClient.get(build_url(options, "height")))
  return height_data
end

.sunrise_sunset(options) ⇒ Object



22
23
24
25
# File 'lib/earthtools.rb', line 22

def self.sunrise_sunset(options)
  sunrise_sunset_data = XmlSimple.xml_in(RestClient.get(build_url(options, "sunrise_sunset")))
  return sunrise_sunset_data
end

.timezone(options) ⇒ Object



17
18
19
20
# File 'lib/earthtools.rb', line 17

def self.timezone(options)
  timezone_data = XmlSimple.xml_in(RestClient.get(build_url(options, "timezone")))
  return timezone_data
end