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"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bucketObject

Returns the value of attribute bucket.



23
24
25
# File 'lib/fakes3/server.rb', line 23

def bucket
  @bucket
end

#http_verbObject

Returns the value of attribute http_verb.



23
24
25
# File 'lib/fakes3/server.rb', line 23

def http_verb
  @http_verb
end

#is_path_styleObject

Returns the value of attribute is_path_style.



23
24
25
# File 'lib/fakes3/server.rb', line 23

def is_path_style
  @is_path_style
end

#methodObject

Returns the value of attribute method.



23
24
25
# File 'lib/fakes3/server.rb', line 23

def method
  @method
end

#objectObject

Returns the value of attribute object.



23
24
25
# File 'lib/fakes3/server.rb', line 23

def object
  @object
end

#pathObject

Returns the value of attribute path.



23
24
25
# File 'lib/fakes3/server.rb', line 23

def path
  @path
end

#queryObject

Returns the value of attribute query.



23
24
25
# File 'lib/fakes3/server.rb', line 23

def query
  @query
end

#src_bucketObject

Returns the value of attribute src_bucket.



23
24
25
# File 'lib/fakes3/server.rb', line 23

def src_bucket
  @src_bucket
end

#src_objectObject

Returns the value of attribute src_object.



23
24
25
# File 'lib/fakes3/server.rb', line 23

def src_object
  @src_object
end

#typeObject

Returns the value of attribute type.



23
24
25
# File 'lib/fakes3/server.rb', line 23

def type
  @type
end

#webrick_requestObject

Returns the value of attribute webrick_request.



23
24
25
# File 'lib/fakes3/server.rb', line 23

def webrick_request
  @webrick_request
end

Instance Method Details

#inspectObject



27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/fakes3/server.rb', line 27

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