Class: OpenStack::Common
- Inherits:
-
Base
- Object
- ActiveResource::Base
- Base
- OpenStack::Common
- Defined in:
- lib/open_stack/common.rb
Direct Known Subclasses
Glance::Base, Keystone::Admin::Base, Keystone::Public::Base, Nova::Compute::Base, Nova::Volume::Base
Class Method Summary collapse
-
.collection_path(prefix_options = {}, query_options = nil) ⇒ Object
Overrides ActiveResource::Base::collection_path to remove .<extension> from resources path.
-
.custom_method_collection_url(method_name, options = {}) ⇒ Object
Overrides ActiveResource::CustomMethods to remove .<extension>.
-
.element_path(id, prefix_options = {}, query_options = nil) ⇒ Object
Overrides ActiveResource::Base::element_path to remove .<extension> from resources path.
Methods inherited from Base
Methods inherited from ActiveResource::Base
Class Method Details
.collection_path(prefix_options = {}, query_options = nil) ⇒ Object
Overrides ActiveResource::Base::collection_path to remove .<extension> from resources path
31 32 33 34 35 36 |
# File 'lib/open_stack/common.rb', line 31 def self.collection_path( = {}, = nil) () , = () if .nil? "#{prefix()}#{collection_name}#{query_string()}" end |
.custom_method_collection_url(method_name, options = {}) ⇒ Object
Overrides ActiveResource::CustomMethods to remove .<extension>
39 40 41 42 |
# File 'lib/open_stack/common.rb', line 39 def self.custom_method_collection_url(method_name, = {}) , = () "#{prefix()}#{collection_name}/#{method_name}#{query_string()}" end |
.element_path(id, prefix_options = {}, query_options = nil) ⇒ Object
Overrides ActiveResource::Base::element_path to remove .<extension> from resources path
23 24 25 26 27 28 |
# File 'lib/open_stack/common.rb', line 23 def self.element_path(id, = {}, = nil) () , = () if .nil? "#{prefix()}#{collection_name}/#{URI.parser.escape id.to_s}#{query_string()}" end |