Method: Fog::Google::StorageJSON::File#body

Defined in:
lib/fog/google/storage/storage_json/models/file.rb

#bodyObject



52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/fog/google/storage/storage_json/models/file.rb', line 52

def body
  return attributes[:body] if attributes.key?(:body)

  file = collection.get(identity)

  attributes[:body] =
    if file
      file.attributes[:body]
    else
      ""
    end
end