Class: Rightscaler::Resource
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- Rightscaler::Resource
show all
- Defined in:
- lib/rightscaler/resource.rb
Direct Known Subclasses
Account, Design::Credential, Design::Macro, Design::RightScript, Design::ServerTemplate, Manage::AlertSpecification, Manage::Deployment, Manage::EC2EBSSnapshot, Manage::EC2EBSVolume, Manage::EC2ElasticIP, Manage::EC2SSHKey, Manage::EC2SecurityGroup, Manage::Server, Manage::Status
Constant Summary
collapse
- API_VERSION =
"1.0"
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.account_id=(account_id) ⇒ Object
13
14
15
|
# File 'lib/rightscaler/resource.rb', line 13
def self.account_id=(account_id)
self.site = self.site.to_s + account_id.to_s
end
|
Instance Method Details
#id ⇒ Object
9
10
11
|
# File 'lib/rightscaler/resource.rb', line 9
def id
href && href.split('/').last
end
|