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

Class Method Details

.error_classObject



25
26
27
# File 'lib/rest_my_case/context/status.rb', line 25

def self.error_class
  Errors::Status
end

Instance Method Details

#statusObject



29
30
31
# File 'lib/rest_my_case/context/status.rb', line 29

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

#status=(_) ⇒ Object



33
34
35
# File 'lib/rest_my_case/context/status.rb', line 33

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