Class: HttpSignatures::Key
- Inherits:
-
Object
- Object
- HttpSignatures::Key
- Defined in:
- lib/http_signatures/key.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#secret ⇒ Object
readonly
Returns the value of attribute secret.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, secret:) ⇒ Key
constructor
A new instance of Key.
Constructor Details
#initialize(id:, secret:) ⇒ Key
Returns a new instance of Key.
4 5 6 7 |
# File 'lib/http_signatures/key.rb', line 4 def initialize(id:, secret:) @id = id @secret = secret end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/http_signatures/key.rb', line 9 def id @id end |
#secret ⇒ Object (readonly)
Returns the value of attribute secret.
10 11 12 |
# File 'lib/http_signatures/key.rb', line 10 def secret @secret end |
Instance Method Details
#==(other) ⇒ Object
12 13 14 15 16 |
# File 'lib/http_signatures/key.rb', line 12 def ==(other) self.class == other.class && self.id == other.id && self.secret == other.secret end |