Class: Firebrew::AmoApi::Search::Format
- Inherits:
-
Object
- Object
- Firebrew::AmoApi::Search::Format
- Includes:
- ActiveResource::Formats::XmlFormat
- Defined in:
- lib/firebrew/amo_api/search.rb
Instance Method Summary collapse
Instance Method Details
#decode(xml) ⇒ Object
10 11 12 13 |
# File 'lib/firebrew/amo_api/search.rb', line 10 def decode(xml) results = super(xml)['addon'] || [] results.instance_of?(Array) ? results : [results] end |