Class: Cwsrb::Language::Status
- Inherits:
-
Object
- Object
- Cwsrb::Language::Status
- 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: '') ⇒ Status
constructor
A new instance of Status.
- #inspect ⇒ Object
Constructor Details
#initialize(code: nil, desc: '') ⇒ Status
Returns a new instance of Status.
65 66 67 68 |
# File 'lib/cwsrb/data.rb', line 65 def initialize(code: nil, desc: '') @code = code @desc = desc end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
62 63 64 |
# File 'lib/cwsrb/data.rb', line 62 def code @code end |
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
63 64 65 |
# File 'lib/cwsrb/data.rb', line 63 def desc @desc end |
Instance Method Details
#inspect ⇒ Object
70 71 72 |
# File 'lib/cwsrb/data.rb', line 70 def inspect "<Language::Status code=#{@code} desc=#{@desc}>" end |