Class: Whitebox::Review

Inherits:
Data
  • Object
show all
Defined in:
lib/whitebox/models.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#confidenceObject (readonly)

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



52
53
54
# File 'lib/whitebox/models.rb', line 52

def confidence
  @confidence
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



52
53
54
# File 'lib/whitebox/models.rb', line 52

def created_at
  @created_at
end

#decision_idObject (readonly)

Returns the value of attribute decision_id

Returns:

  • (Object)

    the current value of decision_id



52
53
54
# File 'lib/whitebox/models.rb', line 52

def decision_id
  @decision_id
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



52
53
54
# File 'lib/whitebox/models.rb', line 52

def id
  @id
end

#inputObject (readonly)

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



52
53
54
# File 'lib/whitebox/models.rb', line 52

def input
  @input
end

#model_votesObject (readonly)

Returns the value of attribute model_votes

Returns:

  • (Object)

    the current value of model_votes



52
53
54
# File 'lib/whitebox/models.rb', line 52

def model_votes
  @model_votes
end

#optionsObject (readonly)

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



52
53
54
# File 'lib/whitebox/models.rb', line 52

def options
  @options
end

#sla_deadlineObject (readonly)

Returns the value of attribute sla_deadline

Returns:

  • (Object)

    the current value of sla_deadline



52
53
54
# File 'lib/whitebox/models.rb', line 52

def sla_deadline
  @sla_deadline
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



52
53
54
# File 'lib/whitebox/models.rb', line 52

def status
  @status
end

Class Method Details

.from_hash(h) ⇒ Object



53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/whitebox/models.rb', line 53

def self.from_hash(h)
  new(
    id: h["id"],
    decision_id: h["decision_id"],
    status: h["status"],
    input: h["input"],
    options: h["options"],
    model_votes: h["model_votes"],
    confidence: h["confidence"],
    sla_deadline: h["sla_deadline"],
    created_at: h["created_at"]
  )
end