Class: OpenStack::Nova::Compute::BaseDetail
- Inherits:
-
Base
- Object
- ActiveResource::Base
- Base
- Common
- Base
- OpenStack::Nova::Compute::BaseDetail
- Defined in:
- lib/open_stack/nova/compute/base_detail.rb
Overview
:nodoc:
Class Method Summary collapse
-
.collection_path(prefix_options = {}, query_options = nil) ⇒ Object
Overrides ActiveResource::Base::collection_path to add /details to resource path for servers and to remove .<extension>.
- .collection_path_create(prefix_options = {}, query_options = nil) ⇒ Object
Instance Method Summary collapse
Methods inherited from Base
Methods inherited from Common
custom_method_collection_url, element_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 add /details to resource path for servers and to remove .<extension>
26 27 28 29 30 31 |
# File 'lib/open_stack/nova/compute/base_detail.rb', line 26 def self.collection_path( = {}, = nil) () , = () if .nil? "#{prefix()}#{collection_name}/detail#{query_string()}" end |
.collection_path_create(prefix_options = {}, query_options = nil) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/open_stack/nova/compute/base_detail.rb', line 33 def self.collection_path_create( = {}, = nil) () , = () if .nil? "#{prefix()}#{collection_name}#{query_string()}" end |
Instance Method Details
#collection_path_create(options = nil) ⇒ Object
40 41 42 |
# File 'lib/open_stack/nova/compute/base_detail.rb', line 40 def collection_path_create( = nil) self.class.collection_path_create( || ) end |