slash¶ ↑
@resource = Slash::Resource.new('http://api.something.com', Slash::Formats.xml(:codec => Slash::Formats::PeanutsXML.new(Response)), rewrite_options(options).update(:key => API_KEY)) cats = @resource['cats'] cats.get cats.create(:name => 'Tom') cats[123].update(:name => 'Tim') cats[123].destroy