Class: LittleGhost::StructuredResult
- Inherits:
-
Data
- Object
- Data
- LittleGhost::StructuredResult
- Defined in:
- lib/little_ghost/run_result.rb,
lib/little_ghost/run_result.rb
Overview
Associates a validated structured value with its declared schema name.
result = LittleGhost::StructuredResult.new(
schema_name: "support_research",
value: {"summary" => "The transfer is still settling."}
)
result.value.fetch("summary") # => "The transfer is still settling."
Instance Attribute Summary collapse
-
#schema_name ⇒ Object
readonly
Returns the value of attribute schema_name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Attribute Details
#schema_name ⇒ Object (readonly)
Returns the value of attribute schema_name
5 6 7 |
# File 'lib/little_ghost/run_result.rb', line 5 def schema_name @schema_name end |
#value ⇒ Object (readonly)
Returns the value of attribute value
5 6 7 |
# File 'lib/little_ghost/run_result.rb', line 5 def value @value end |