Module: OpenDMM::Maker::Opera::Site

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

Class Method Summary collapse

Class Method Details

.item(name) ⇒ Object



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

def self.item(name)
  case name
  when /^(OPUD)-?(\d{3})$/i
    get("/works/-/detail/=/cid=#{$1.downcase}#{$2}")
  end
end