Class: Ec2EbsVolume
- Inherits:
-
Object
- Object
- Ec2EbsVolume
- Extended by:
- RightScale::Api::BaseExtend, RightScale::Api::TaggableExtend
- Includes:
- RightScale::Api::Base, RightScale::Api::Taggable
- Defined in:
- lib/rest_connection/rightscale/ec2_ebs_volume.rb
Overview
API 1.0
Instance Attribute Summary
Attributes included from RightScale::Api::Base
Instance Method Summary collapse
Methods included from RightScale::Api::BaseExtend
[], create, deny_methods, filters, find, find_all, find_by, find_by_cloud_id, find_by_id, find_by_nickname, find_by_nickname_speed, find_with_filter, resource_plural_name, resource_singular_name
Methods included from RightScale::Api::BaseConnection
Methods included from RightScale::Api::TaggableExtend
Methods included from RightScale::Api::Taggable
#add_tags, #clear_tags, #get_info_tags, #get_tags_by_namespace, #remove_info_tags, #remove_tags, #remove_tags_by_namespace, #set_info_tags, #set_tags_by_namespace, #set_tags_to, #tags
Methods included from RightScale::Api::Base
#[], #[]=, #destroy, #initialize, #method_missing, #reload, #resource_plural_name, #resource_singular_name, #rs_id, #save
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RightScale::Api::Base
Instance Method Details
#attach(params) ⇒ Object
33 34 35 |
# File 'lib/rest_connection/rightscale/ec2_ebs_volume.rb', line 33 def attach(params) @link = ServerEc2EbsVolume.create(params) end |
#detach ⇒ Object
37 38 39 |
# File 'lib/rest_connection/rightscale/ec2_ebs_volume.rb', line 37 def detach @link.destroy if @link end |