Class: Ec2EbsVolume

Inherits:
RightResource::Base show all
Defined in:
lib/right_resource/ec2_ebs_volume.rb

Overview

alias_method

  • attach_to_server - component_ec2_ebs_volumes

Instance Attribute Summary

Attributes inherited from RightResource::Base

#attributes, #id

Class Method Summary collapse

Methods inherited from RightResource::Base

action, #clone, collection_path, connection, connection=, correct_attributes, create, destory, #destory, #dup, element_path, format, format=, headers, index, #initialize, #known_attributes, #loads, logger, logger=, #new?, #reload, resource_id, resource_name, #respond_to?, #respond_to_without_attributes?, #save, #schema, show, status_code, update, #update_attribute, #update_attributes

Constructor Details

This class inherits a constructor from RightResource::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RightResource::Base

Class Method Details

.component_ec2_ebs_volumes(params) ⇒ Object Also known as: attach_to_server

Eb2Volume attach to server

Parameters

  • params - Hash (keys = [:ec2_ebs_volume_href, :component_href, :device, :mount])



8
9
10
11
12
13
# File 'lib/right_resource/ec2_ebs_volume.rb', line 8

def component_ec2_ebs_volumes(params)
  pair = URI.decode({:component_ec2_ebs_volume => elems}.to_params).split('&').map {|l| l.split('=')}
  h = Hash[*pair.flatten]
  path = "component_ec2_ebs_volumes"
  action(:post, path, h)
end