Class: McVolumeAttachment
Overview
Instance Attribute Summary
#params
Class Method Summary
collapse
Instance Method Summary
collapse
create, filters, find, find_all, find_by, find_with_filter, load, load_all, parse_args, resource_post_name
#connection
#[], #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
#connection
#[], #[]=, #actions, #hash_of_links, #href, #initialize, #load, #method_missing, #nickname, #parse_params, #rediscover, #save
#[], #[]=, #destroy, #initialize, #method_missing, #reload, #rs_id, #save
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class RightScale::Api::Gateway
Class Method Details
.filters ⇒ Object
54
55
56
|
# File 'lib/rest_connection/rightscale/mc_volume_attachment.rb', line 54
def self.filters
[:instance_href, :resource_uid, :volume_href]
end
|
.parse_args(cloud_id, instance_id = nil) ⇒ Object
49
50
51
52
|
# File 'lib/rest_connection/rightscale/mc_volume_attachment.rb', line 49
def self.parse_args(cloud_id, instance_id=nil)
return "clouds/#{cloud_id}/" unless instance_id
return "clouds/#{cloud_id}/volumes/#{instance_id}/" if instance_id
end
|
.resource_plural_name ⇒ Object
41
42
43
|
# File 'lib/rest_connection/rightscale/mc_volume_attachment.rb', line 41
def self.resource_plural_name
"volume_attachments"
end
|
.resource_singular_name ⇒ Object
45
46
47
|
# File 'lib/rest_connection/rightscale/mc_volume_attachment.rb', line 45
def self.resource_singular_name
"volume_attachment"
end
|
Instance Method Details
#resource_plural_name ⇒ Object
33
34
35
|
# File 'lib/rest_connection/rightscale/mc_volume_attachment.rb', line 33
def resource_plural_name
"volume_attachments"
end
|
#resource_singular_name ⇒ Object
37
38
39
|
# File 'lib/rest_connection/rightscale/mc_volume_attachment.rb', line 37
def resource_singular_name
"volume_attachment"
end
|
#show ⇒ Object
58
59
60
61
|
# File 'lib/rest_connection/rightscale/mc_volume_attachment.rb', line 58
def show
inst_href = URI.parse(self.href)
@params.merge! connection.get(inst_href.path)
end
|