Class: ValueObject::Base
- Inherits:
-
Object
- Object
- ValueObject::Base
- Extended by:
- DSL
- Defined in:
- lib/value_object/base.rb
Overview
Rubocop wants me to document you
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Attributes included from DSL
Instance Method Summary collapse
-
#initialize(key) ⇒ Base
constructor
A new instance of Base.
Methods included from DSL
Constructor Details
#initialize(key) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/value_object/base.rb', line 8 def initialize(key) @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'lib/value_object/base.rb', line 6 def key @key end |