Class: Shuck::Request

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

Constant Summary collapse

CREATE_BUCKET =
"CREATE_BUCKET"
LIST_BUCKETS =
"LIST_BUCKETS"
LS_BUCKET =
"LS_BUCKET"
STORE =
"STORE"
COPY =
"COPY"
GET =
"GET"
GET_ACL =
"GET_ACL"
SET_ACL =
"SET_ACL"
MOVE =
"MOVE"
DELETE =
"DELETE"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bucketObject

Returns the value of attribute bucket.



18
19
20
# File 'lib/shuck/server.rb', line 18

def bucket
  @bucket
end

#is_path_styleObject

Returns the value of attribute is_path_style.



18
19
20
# File 'lib/shuck/server.rb', line 18

def is_path_style
  @is_path_style
end

#methodObject

Returns the value of attribute method.



18
19
20
# File 'lib/shuck/server.rb', line 18

def method
  @method
end

#objectObject

Returns the value of attribute object.



18
19
20
# File 'lib/shuck/server.rb', line 18

def object
  @object
end

#pathObject

Returns the value of attribute path.



18
19
20
# File 'lib/shuck/server.rb', line 18

def path
  @path
end

#src_bucketObject

Returns the value of attribute src_bucket.



18
19
20
# File 'lib/shuck/server.rb', line 18

def src_bucket
  @src_bucket
end

#src_objectObject

Returns the value of attribute src_object.



18
19
20
# File 'lib/shuck/server.rb', line 18

def src_object
  @src_object
end

#typeObject

Returns the value of attribute type.



18
19
20
# File 'lib/shuck/server.rb', line 18

def type
  @type
end

#webrick_requestObject

Returns the value of attribute webrick_request.



18
19
20
# File 'lib/shuck/server.rb', line 18

def webrick_request
  @webrick_request
end

Instance Method Details

#inspectObject



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/shuck/server.rb', line 20

def inspect
  puts "-----Inspect Shuck 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 "-----Done"
end