File: default.rb

package info (click to toggle)
ruby-soap4r 2.0.5-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,032 kB
  • sloc: ruby: 52,729; xml: 266; sh: 42; javascript: 20; makefile: 13; perl: 10
file content (46 lines) | stat: -rw-r--r-- 1,202 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
require 'xsd/qname'

# {http://weather.gov/forecasts/xml/DWMLgen/schema/ndfdXML.xsd}weatherParametersType
class WeatherParametersType
  attr_accessor :maxt
  attr_accessor :mint
  attr_accessor :temp
  attr_accessor :dew
  attr_accessor :pop12
  attr_accessor :qpf
  attr_accessor :sky
  attr_accessor :snow
  attr_accessor :wspd
  attr_accessor :wdir
  attr_accessor :wx
  attr_accessor :waveh
  attr_accessor :icons

  def initialize(maxt = nil, mint = nil, temp = nil, dew = nil, pop12 = nil, qpf = nil, sky = nil, snow = nil, wspd = nil, wdir = nil, wx = nil, waveh = nil, icons = nil)
    @maxt = maxt
    @mint = mint
    @temp = temp
    @dew = dew
    @pop12 = pop12
    @qpf = qpf
    @sky = sky
    @snow = snow
    @wspd = wspd
    @wdir = wdir
    @wx = wx
    @waveh = waveh
    @icons = icons
  end
end

# {http://weather.gov/forecasts/xml/DWMLgen/schema/ndfdXML.xsd}formatType
class FormatType < ::String
  C_12Hourly = FormatType.new("12 hourly")
  C_24Hourly = FormatType.new("24 hourly")
end

# {http://weather.gov/forecasts/xml/DWMLgen/schema/ndfdXML.xsd}productType
class ProductType < ::String
  Glance = ProductType.new("glance")
  TimeSeries = ProductType.new("time-series")
end