Class: UDRS::Components::Code
- Inherits:
-
Object
- Object
- UDRS::Components::Code
- Defined in:
- lib/udrs/components/code.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ Code
constructor
A new instance of Code.
Constructor Details
#initialize(code) ⇒ Code
Returns a new instance of Code.
6 7 8 |
# File 'lib/udrs/components/code.rb', line 6 def initialize(code) @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/udrs/components/code.rb', line 4 def code @code end |