Class: Smogon::Itemdex

Inherits:
Object
  • Object
show all
Defined in:
lib/smogon/itemdex.rb

Class Method Summary collapse

Class Method Details

.get(name, incapsulate = true) ⇒ Object



22
23
24
25
26
# File 'lib/smogon/itemdex.rb', line 22

def self.get(name, incapsulate = true)
  response = API.request(:items, name)
  return nil unless response
  Type::Item.new(response)
end