Class: Insika::ShadowPairStore::Pair
- Inherits:
-
Data
- Object
- Data
- Insika::ShadowPairStore::Pair
- Defined in:
- lib/insika/shadow_pair_store.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
readonly
Returns the value of attribute agent.
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#criterion_sha ⇒ Object
readonly
Returns the value of attribute criterion_sha.
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#inbound ⇒ Object
readonly
Returns the value of attribute inbound.
-
#incumbent_reply ⇒ Object
readonly
Returns the value of attribute incumbent_reply.
-
#insika_reply ⇒ Object
readonly
Returns the value of attribute insika_reply.
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#task_id ⇒ Object
readonly
Returns the value of attribute task_id.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#verdict ⇒ Object
readonly
Returns the value of attribute verdict.
Instance Method Summary collapse
Instance Attribute Details
#agent ⇒ Object (readonly)
Returns the value of attribute agent
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def agent @agent end |
#channel ⇒ Object (readonly)
Returns the value of attribute channel
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def channel @channel end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def created_at @created_at end |
#criterion_sha ⇒ Object (readonly)
Returns the value of attribute criterion_sha
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def criterion_sha @criterion_sha end |
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def event_id @event_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def id @id end |
#inbound ⇒ Object (readonly)
Returns the value of attribute inbound
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def inbound @inbound end |
#incumbent_reply ⇒ Object (readonly)
Returns the value of attribute incumbent_reply
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def incumbent_reply @incumbent_reply end |
#insika_reply ⇒ Object (readonly)
Returns the value of attribute insika_reply
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def insika_reply @insika_reply end |
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def session_id @session_id end |
#status ⇒ Object (readonly)
Returns the value of attribute status
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def status @status end |
#task_id ⇒ Object (readonly)
Returns the value of attribute task_id
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def task_id @task_id end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def updated_at @updated_at end |
#verdict ⇒ Object (readonly)
Returns the value of attribute verdict
28 29 30 |
# File 'lib/insika/shadow_pair_store.rb', line 28 def verdict @verdict end |
Instance Method Details
#complete? ⇒ Boolean
33 |
# File 'lib/insika/shadow_pair_store.rb', line 33 def complete? = %i[complete silent].include?(status) |
#human_assisted? ⇒ Boolean
36 |
# File 'lib/insika/shadow_pair_store.rb', line 36 def human_assisted? = verdict && verdict["vs"] == "human-assisted" |
#judged? ⇒ Boolean
34 |
# File 'lib/insika/shadow_pair_store.rb', line 34 def judged? = status == :judged |
#outcome ⇒ Object
35 |
# File 'lib/insika/shadow_pair_store.rb', line 35 def outcome = verdict && verdict["outcome"] |