Class: Cwsrb::Language::Type
- Inherits:
-
Object
- Object
- Cwsrb::Language::Type
- Defined in:
- lib/cwsrb/data.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
Instance Method Summary collapse
-
#initialize(code: nil, desc: '') ⇒ Type
constructor
A new instance of Type.
- #inspect ⇒ Object
Constructor Details
#initialize(code: nil, desc: '') ⇒ Type
Returns a new instance of Type.
51 52 53 54 |
# File 'lib/cwsrb/data.rb', line 51 def initialize(code: nil, desc: '') @code = code @desc = desc end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
48 49 50 |
# File 'lib/cwsrb/data.rb', line 48 def code @code end |
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
49 50 51 |
# File 'lib/cwsrb/data.rb', line 49 def desc @desc end |
Instance Method Details
#inspect ⇒ Object
56 57 58 |
# File 'lib/cwsrb/data.rb', line 56 def inspect "<Language::Type code=#{@code} desc=#{@desc}>" end |