Method: Fog::Storage::Google::Mock#get_object_acl
- Defined in:
- lib/fog/google/requests/storage/get_object_acl.rb
#get_object_acl(bucket_name, object_name) ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/fog/google/requests/storage/get_object_acl.rb', line 59 def get_object_acl(bucket_name, object_name) response = Excon::Response.new if acl = self.data[:acls][:object][bucket_name] && self.data[:acls][:object][bucket_name][object_name] response.status = 200 response.body = acl else response.status = 404 raise(Excon::Errors.status_error({:expects => 200}, response)) end response end |