Module: OpenDMM::Maker::Baltan::Site

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

Class Method Summary collapse

Class Method Details

.item(name) ⇒ Object



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

def self.item(name)
  case name
  when /^(TMAM|TMCY|TMDI|TMEM|TMVI)-?(\d{3})$/i
    get("/items/detail/#{$1.upcase}-#{$2}")
  end
end