Class: Cerealizer::Key
- Inherits:
-
Object
- Object
- Cerealizer::Key
- Defined in:
- lib/cerealizer.rb
Overview
Encapsulates information about keys.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Key
constructor
A new instance of Key.
Constructor Details
#initialize(name) ⇒ Key
Returns a new instance of Key.
8 9 10 |
# File 'lib/cerealizer.rb', line 8 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/cerealizer.rb', line 6 def name @name end |