Class: Richard::Status

Inherits:
Struct
  • Object
show all
Defined in:
lib/richard_iii/request_and_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



30
31
32
# File 'lib/richard_iii/request_and_response.rb', line 30

def code
  @code
end

#descObject

Returns the value of attribute desc

Returns:

  • (Object)

    the current value of desc



30
31
32
# File 'lib/richard_iii/request_and_response.rb', line 30

def desc
  @desc
end

Instance Method Details

#to_sObject



31
# File 'lib/richard_iii/request_and_response.rb', line 31

def to_s; "#{code} #{desc}"; end