Class: Cwsrb::Language::Status
- Inherits:
-
Object
- Object
- Cwsrb::Language::Status
- Defined in:
- lib/cwsrb/data.rb
Overview
The Language::Type class represents a language status of ConWorkShop.
Instance Attribute Summary collapse
-
#code ⇒ String
readonly
The one-character status code.
-
#desc ⇒ String
readonly
The description for the status.
Instance Method Summary collapse
-
#initialize(code: '', desc: '') ⇒ Status
constructor
Initializes a new Status instance with an options hash.
-
#inspect ⇒ String
inspect method, with all of Status' attributes.
Constructor Details
#initialize(code: '', desc: '') ⇒ Status
Initializes a new Status instance with an options hash.
103 104 105 106 |
# File 'lib/cwsrb/data.rb', line 103 def initialize(code: '', desc: '') @code = code @desc = desc end |
Instance Attribute Details
#code ⇒ String (readonly)
93 94 95 |
# File 'lib/cwsrb/data.rb', line 93 def code @code end |
#desc ⇒ String (readonly)
96 97 98 |
# File 'lib/cwsrb/data.rb', line 96 def desc @desc end |
Instance Method Details
#inspect ⇒ String
111 112 113 |
# File 'lib/cwsrb/data.rb', line 111 def inspect "<Language::Status code=#{@code} desc=#{@desc}>" end |