Class: Insika::ShadowPairStore::Pair

Inherits:
Data
  • Object
show all
Defined in:
lib/insika/shadow_pair_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#agentObject (readonly)

Returns the value of attribute agent

Returns:

  • (Object)

    the current value of agent



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def agent
  @agent
end

#channelObject (readonly)

Returns the value of attribute channel

Returns:

  • (Object)

    the current value of channel



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def channel
  @channel
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def created_at
  @created_at
end

#criterion_shaObject (readonly)

Returns the value of attribute criterion_sha

Returns:

  • (Object)

    the current value of criterion_sha



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def criterion_sha
  @criterion_sha
end

#event_idObject (readonly)

Returns the value of attribute event_id

Returns:

  • (Object)

    the current value of event_id



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def event_id
  @event_id
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def id
  @id
end

#inboundObject (readonly)

Returns the value of attribute inbound

Returns:

  • (Object)

    the current value of inbound



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def inbound
  @inbound
end

#incumbent_replyObject (readonly)

Returns the value of attribute incumbent_reply

Returns:

  • (Object)

    the current value of incumbent_reply



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def incumbent_reply
  @incumbent_reply
end

#insika_replyObject (readonly)

Returns the value of attribute insika_reply

Returns:

  • (Object)

    the current value of insika_reply



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def insika_reply
  @insika_reply
end

#session_idObject (readonly)

Returns the value of attribute session_id

Returns:

  • (Object)

    the current value of session_id



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def session_id
  @session_id
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def status
  @status
end

#task_idObject (readonly)

Returns the value of attribute task_id

Returns:

  • (Object)

    the current value of task_id



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def task_id
  @task_id
end

#updated_atObject (readonly)

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def updated_at
  @updated_at
end

#verdictObject (readonly)

Returns the value of attribute verdict

Returns:

  • (Object)

    the current value of verdict



28
29
30
# File 'lib/insika/shadow_pair_store.rb', line 28

def verdict
  @verdict
end

Instance Method Details

#complete?Boolean

Returns:

  • (Boolean)


33
# File 'lib/insika/shadow_pair_store.rb', line 33

def complete?      = %i[complete silent].include?(status)

#human_assisted?Boolean

Returns:

  • (Boolean)


36
# File 'lib/insika/shadow_pair_store.rb', line 36

def human_assisted? = verdict && verdict["vs"] == "human-assisted"

#judged?Boolean

Returns:

  • (Boolean)


34
# File 'lib/insika/shadow_pair_store.rb', line 34

def judged?        = status == :judged

#outcomeObject



35
# File 'lib/insika/shadow_pair_store.rb', line 35

def outcome        = verdict && verdict["outcome"]