Class: RestMyCase::Context::Status
- Inherits:
-
Base
- Object
- OpenStruct
- Base
- RestMyCase::Context::Status
show all
- Defined in:
- lib/rest_my_case/context/status.rb
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_class ⇒ Object
23
24
25
|
# File 'lib/rest_my_case/context/status.rb', line 23
def self.error_class
Errors::Status
end
|
Instance Method Details
#status ⇒ Object
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
|