Module: CouchPotato::Extensions::Attachments

Defined in:
lib/couch_potato/extensions/attachments.rb

Instance Method Summary collapse

Instance Method Details

#attachment(name) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/couch_potato/extensions/attachments.rb', line 4

def attachment(name)
  if not new?
    begin
      CouchPotato.database.send(:database).fetch_attachment(id, name)
    rescue RestClient::ResourceNotFound
    end
  end
end