Class: FakeS3::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/fakes3/server.rb

Constant Summary collapse

CREATE_BUCKET =
"CREATE_BUCKET"
LIST_BUCKETS =
"LIST_BUCKETS"
LS_BUCKET =
"LS_BUCKET"
HEAD =
"HEAD"
STORE =
"STORE"
COPY =
"COPY"
GET =
"GET"
GET_ACL =
"GET_ACL"
SET_ACL =
"SET_ACL"
MOVE =
"MOVE"
DELETE_OBJECT =
"DELETE_OBJECT"
DELETE_BUCKET =
"DELETE_BUCKET"
DELETE_OBJECTS =
"DELETE_OBJECTS"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bucketObject

Returns the value of attribute bucket.



32
33
34
# File 'lib/fakes3/server.rb', line 32

def bucket
  @bucket
end

#http_verbObject

Returns the value of attribute http_verb.



32
33
34
# File 'lib/fakes3/server.rb', line 32

def http_verb
  @http_verb
end

#is_path_styleObject

Returns the value of attribute is_path_style.



32
33
34
# File 'lib/fakes3/server.rb', line 32

def is_path_style
  @is_path_style
end

#methodObject

Returns the value of attribute method.



32
33
34
# File 'lib/fakes3/server.rb', line 32

def method
  @method
end

#objectObject

Returns the value of attribute object.



32
33
34
# File 'lib/fakes3/server.rb', line 32

def object
  @object
end

#pathObject

Returns the value of attribute path.



32
33
34
# File 'lib/fakes3/server.rb', line 32

def path
  @path
end

#queryObject

Returns the value of attribute query.



32
33
34
# File 'lib/fakes3/server.rb', line 32

def query
  @query
end

#src_bucketObject

Returns the value of attribute src_bucket.



32
33
34
# File 'lib/fakes3/server.rb', line 32

def src_bucket
  @src_bucket
end

#src_objectObject

Returns the value of attribute src_object.



32
33
34
# File 'lib/fakes3/server.rb', line 32

def src_object
  @src_object
end

#typeObject

Returns the value of attribute type.



32
33
34
# File 'lib/fakes3/server.rb', line 32

def type
  @type
end

#webrick_requestObject

Returns the value of attribute webrick_request.



32
33
34
# File 'lib/fakes3/server.rb', line 32

def webrick_request
  @webrick_request
end

Instance Method Details

#inspectObject



36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/fakes3/server.rb', line 36

def inspect
  puts "-----Inspect FakeS3 Request"
  puts "Type: #{@type}"
  puts "Is Path Style: #{@is_path_style}"
  puts "Request Method: #{@method}"
  puts "Bucket: #{@bucket}"
  puts "Object: #{@object}"
  puts "Src Bucket: #{@src_bucket}"
  puts "Src Object: #{@src_object}"
  puts "Query: #{@query}"
  puts "-----Done"
end