Class: OpsWorks::Resource
- Inherits:
-
Object
- Object
- OpsWorks::Resource
- Defined in:
- lib/opsworks/resource.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(client, options = {}) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(client, options = {}) ⇒ Resource
Returns a new instance of Resource.
5 6 7 8 9 10 11 |
# File 'lib/opsworks/resource.rb', line 5 def initialize(client, = {}) @client = client .each do |key, value| send("#{key}=", value) if respond_to?("#{key}=") end end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/opsworks/resource.rb', line 3 def client @client end |
Class Method Details
.account ⇒ Object
13 14 15 |
# File 'lib/opsworks/resource.rb', line 13 def self.account ENV['ACCOUNT'] || @account || 'opsworks-cli' end |