Class: AWS::PWS::Client
- Inherits:
-
Object
- Object
- AWS::PWS::Client
- Defined in:
- lib/aws/pws/client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cli ⇒ Object
Returns the value of attribute cli.
-
#raw_data ⇒ Object
Returns the value of attribute raw_data.
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #read(key) ⇒ Object
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
8 9 10 11 |
# File 'lib/aws/pws/client.rb', line 8 def initialize @cli ||= ::PWS.new({}) @raw_data = @cli.instance_variable_get(:@data) end |
Instance Attribute Details
#cli ⇒ Object
Returns the value of attribute cli.
6 7 8 |
# File 'lib/aws/pws/client.rb', line 6 def cli @cli end |
#raw_data ⇒ Object
Returns the value of attribute raw_data.
6 7 8 |
# File 'lib/aws/pws/client.rb', line 6 def raw_data @raw_data end |
Instance Method Details
#read(key) ⇒ Object
13 14 15 16 |
# File 'lib/aws/pws/client.rb', line 13 def read(key) return unless raw_data[key] raw_data[key][:password] end |