Class: Whitebox::Run
- Inherits:
-
Data
- Object
- Data
- Whitebox::Run
- Defined in:
- lib/whitebox/models.rb
Instance Attribute Summary collapse
-
#answer ⇒ Object
readonly
Returns the value of attribute answer.
-
#latency_ms ⇒ Object
readonly
Returns the value of attribute latency_ms.
-
#logprob ⇒ Object
readonly
Returns the value of attribute logprob.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Class Method Summary collapse
Instance Attribute Details
#answer ⇒ Object (readonly)
Returns the value of attribute answer
2 3 4 |
# File 'lib/whitebox/models.rb', line 2 def answer @answer end |
#latency_ms ⇒ Object (readonly)
Returns the value of attribute latency_ms
2 3 4 |
# File 'lib/whitebox/models.rb', line 2 def latency_ms @latency_ms end |
#logprob ⇒ Object (readonly)
Returns the value of attribute logprob
2 3 4 |
# File 'lib/whitebox/models.rb', line 2 def logprob @logprob end |
#model ⇒ Object (readonly)
Returns the value of attribute model
2 3 4 |
# File 'lib/whitebox/models.rb', line 2 def model @model end |
Class Method Details
.from_hash(h) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/whitebox/models.rb', line 3 def self.from_hash(h) new( model: h["model"], answer: h["answer"], logprob: h["logprob"], latency_ms: h["latency_ms"] ) end |