Class: RestMyCase::Context::Status

Inherits:
Base
  • Object
show all
Defined in:
lib/rest_my_case/context/status.rb

Direct Known Subclasses

HttpStatus

Defined Under Namespace

Classes: StatusString

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#errors, schema_validator_class, #to_hash, #valid?, #validate_schema, #values_at

Class Method Details

.error_classObject



23
24
25
# File 'lib/rest_my_case/context/status.rb', line 23

def self.error_class
  Errors::Status
end

Instance Method Details

#statusObject



27
28
29
# File 'lib/rest_my_case/context/status.rb', line 27

def status
  @status ||= StatusString.new 'ok'
end

#status=(_) ⇒ Object



31
32
33
# File 'lib/rest_my_case/context/status.rb', line 31

def status=(_)
  raise 'status is a reserved keyword which cannot be set'
end