Class: NoaaWeatherClient::Templates::PostalCode

Inherits:
Struct
  • Object
show all
Defined in:
lib/noaa_weather_client/cli/templates.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#coordinateObject

Returns the value of attribute coordinate

Returns:

  • (Object)

    the current value of coordinate



25
26
27
# File 'lib/noaa_weather_client/cli/templates.rb', line 25

def coordinate
  @coordinate
end

Instance Method Details

#to_sObject



26
27
28
# File 'lib/noaa_weather_client/cli/templates.rb', line 26

def to_s
  "#{coordinate.latitude} #{coordinate.longitude}"
end