Class: Misty::Openstack::Swift::V1
- Inherits:
-
Object
- Object
- Misty::Openstack::Swift::V1
- Includes:
- ClientPack, Misty::Openstack::SwiftV1
- Defined in:
- lib/misty/openstack/swift/v1.rb
Constant Summary
Constants included from Client
Instance Attribute Summary
Attributes included from Client
Instance Method Summary collapse
- #bulk_delete(data) ⇒ Object
- #prefix_path_to_ignore ⇒ Object
-
#requests_custom ⇒ Object
Custom requests.
- #service_names ⇒ Object
Methods included from HTTP::Direct
#base_set, #delete, #get, #post, #put
Methods included from HTTP::Request
#decode?, #http, #http_copy, #http_delete, #http_get, #http_head, #http_options, #http_patch, #http_post, #http_put, #http_to_s
Methods included from HTTP::MethodBuilder
Methods included from HTTP::NetHTTP
Methods included from Client
Methods included from Misty::Openstack::SwiftV1
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Misty::HTTP::MethodBuilder
Instance Method Details
#bulk_delete(data) ⇒ Object
24 25 26 27 28 |
# File 'lib/misty/openstack/swift/v1.rb', line 24 def bulk_delete(data) param = 'bulk-delete=1' header = Misty::HTTP::Header.new('Content-Type' => 'text/plain') (param, data, header) end |
#prefix_path_to_ignore ⇒ Object
11 12 13 |
# File 'lib/misty/openstack/swift/v1.rb', line 11 def prefix_path_to_ignore '/v1/{account}' end |
#requests_custom ⇒ Object
Custom requests
20 21 22 |
# File 'lib/misty/openstack/swift/v1.rb', line 20 def requests_custom [ :bulk_delete ] end |
#service_names ⇒ Object
15 16 17 |
# File 'lib/misty/openstack/swift/v1.rb', line 15 def service_names %w{object-storage object-store} end |