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
Class Method Details
.error_class ⇒ Object
25
26
27
|
# File 'lib/rest_my_case/context/status.rb', line 25
def self.error_class
Errors::Status
end
|
Instance Method Details
#status ⇒ Object
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
|