Method: Restforce::Document#Body

Defined in:
lib/restforce/document.rb

#BodyObject

Public: Returns the body of the document.

Examples

document = client.query('select Id, Name, Body from Document').first
File.open(document.Name, 'wb') { |f| f.write(document.Body) }

11
12
13
14
# File 'lib/restforce/document.rb', line 11

def Body
  ensure_id && ensure_body
  @client.get(super).body
end