Class: AWS::PWS::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/pws/client.rb

Direct Known Subclasses

StealthClient

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClient

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

#cliObject

Returns the value of attribute cli.



6
7
8
# File 'lib/aws/pws/client.rb', line 6

def cli
  @cli
end

#raw_dataObject

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