Class: PF::SecretKeyAccount

Inherits:
Object
  • Object
show all
Defined in:
lib/pf/profile/profile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject

Returns the value of attribute access_key.



139
140
141
# File 'lib/pf/profile/profile.rb', line 139

def access_key
  @access_key
end

#nameObject

Returns the value of attribute name.



139
140
141
# File 'lib/pf/profile/profile.rb', line 139

def name
  @name
end

#secret_keyObject

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

Returns:

  • (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