class Cwsrb::Language::Status

The Language::Type class represents a language status of ConWorkShop.

Attributes

code[R]

@return [String] The one-character status code.

desc[R]

@return [String] The description for the status.

Public Class Methods

new(code: '', desc: '') click to toggle source

Initializes a new Status instance with an options hash. @param code [String] The one-character status code. Defaults to an

empty string.

@param desc [String] The description for the status. Defaults to an

empty string.
# File lib/cwsrb/data.rb, line 103
def initialize(code: '', desc: '')
  @code = code
  @desc = desc
end

Public Instance Methods

inspect() click to toggle source

@overload inspect

@return [String] A more meaningful output than that of the default
inspect method, with all of Status' attributes.
# File lib/cwsrb/data.rb, line 111
def inspect
  "<Language::Status code=#{@code} desc=#{@desc}>"
end