class WeatherGov::Identifier::Gridpoint

Public Class Methods

base_uri() click to toggle source
Calls superclass method WeatherGov::Identifier::base_uri
# File lib/weather_gov/identifier/gridpoint.rb, line 8
def self.base_uri
  URI.join(super, "/gridpoints/").to_s
end

Public Instance Methods

grid_id() click to toggle source
# File lib/weather_gov/identifier/gridpoint.rb, line 16
def grid_id
  @grid_id ||= id.split("/")[1]
end
grid_x() click to toggle source
# File lib/weather_gov/identifier/gridpoint.rb, line 20
def grid_x
  @grid_x ||= grid_id.split(",")[0]
end
grid_y() click to toggle source
# File lib/weather_gov/identifier/gridpoint.rb, line 24
def grid_y
  @grid_y ||= grid_id.split(",")[1]
end
office_id() click to toggle source
# File lib/weather_gov/identifier/gridpoint.rb, line 12
def office_id
  @office_id ||= id.split("/")[0]
end