Class: COSE::Algorithm::Base
- Inherits:
-
Object
- Object
- COSE::Algorithm::Base
- Defined in:
- lib/cose/algorithm/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id, name) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(id, name) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/cose/algorithm/base.rb', line 8 def initialize(id, name) @id = id @name = name end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/cose/algorithm/base.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/cose/algorithm/base.rb', line 6 def name @name end |