Class: SnomedQuery::OperationOutcome
- Inherits:
-
Object
- Object
- SnomedQuery::OperationOutcome
- Defined in:
- lib/snomed_query/operation_outcome.rb
Instance Attribute Summary collapse
-
#issue ⇒ Object
Returns the value of attribute issue.
-
#resource_type ⇒ Object
Returns the value of attribute resource_type.
Instance Method Summary collapse
- #error_message ⇒ Object
-
#initialize(resourceType:, issue:) ⇒ OperationOutcome
constructor
A new instance of OperationOutcome.
Constructor Details
#initialize(resourceType:, issue:) ⇒ OperationOutcome
Returns a new instance of OperationOutcome.
7 8 9 10 |
# File 'lib/snomed_query/operation_outcome.rb', line 7 def initialize(resourceType:, issue:) @resource_type = resourceType @issue = issue end |
Instance Attribute Details
#issue ⇒ Object
Returns the value of attribute issue.
5 6 7 |
# File 'lib/snomed_query/operation_outcome.rb', line 5 def issue @issue end |
#resource_type ⇒ Object
Returns the value of attribute resource_type.
5 6 7 |
# File 'lib/snomed_query/operation_outcome.rb', line 5 def resource_type @resource_type end |
Instance Method Details
#error_message ⇒ Object
12 13 14 |
# File 'lib/snomed_query/operation_outcome.rb', line 12 def issue.first.dig("diagnostics") end |