Class: PF::SecretKeyAccount
- Inherits:
-
Object
- Object
- PF::SecretKeyAccount
- Defined in:
- lib/pf/profile/profile.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
Instance Method Summary collapse
- #equal?(other) ⇒ Boolean
-
#initialize(name, access_key, secret_key) ⇒ SecretKeyAccount
constructor
A new instance of SecretKeyAccount.
Constructor Details
#initialize(name, access_key, secret_key) ⇒ SecretKeyAccount
Returns a new instance of SecretKeyAccount.
140 141 142 143 144 |
# File 'lib/pf/profile/profile.rb', line 140 def initialize(name, access_key, secret_key) @name = name @access_key = access_key @secret_key = secret_key end |
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
139 140 141 |
# File 'lib/pf/profile/profile.rb', line 139 def access_key @access_key end |
#name ⇒ Object
Returns the value of attribute name.
139 140 141 |
# File 'lib/pf/profile/profile.rb', line 139 def name @name end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
139 140 141 |
# File 'lib/pf/profile/profile.rb', line 139 def secret_key @secret_key end |
Instance Method Details
#equal?(other) ⇒ Boolean
146 147 148 |
# File 'lib/pf/profile/profile.rb', line 146 def equal?(other) @name == other.name and @access_key == other.access_key and @secret_key = other.secret_key end |