Module: OpenDMM::Maker::Sod::Site

Includes:
HTTParty
Defined in:
lib/opendmm/makers/sod.rb

Class Method Summary collapse

Class Method Details

.item(name) ⇒ Object



10
11
12
13
14
15
# File 'lib/opendmm/makers/sod.rb', line 10

def self.item(name)
  case name
  when /^(NAGE|SDDE|SDMT|SDMU|SDNM|STAR)-?(\d{3})$/i
    get("/detail/index/-_-/iid/#{$1.upcase}-#{$2}")
  end
end