class Hermes::Bot::Model

Attributes

base_model_id[R]
customizable[R]
default[R]
domain[R]
id[R]
name[R]
owner[R]
source[R]
status[R]
target[R]

Public Class Methods

new(attrs = {}) click to toggle source
# File lib/hermes/bot/model.rb, line 7
def initialize(attrs = {})
  @id = attrs["model_id"]
  @source = attrs["source"]
  @target = attrs["target"]
  @base_model_id = attrs["base_model_id"]
  @customizable = attrs["customizable"]
  @default = attrs["default"]
  @domain = attrs["domain"]
  @owner = attrs["owner"]
  @status = attrs["status"]
  @name = attrs["name"]
end

Public Instance Methods

available?() click to toggle source
# File lib/hermes/bot/model.rb, line 20
def available?
  status == "available"
end
error?() click to toggle source
# File lib/hermes/bot/model.rb, line 28
def error?
  status == "error"
end
training?() click to toggle source
# File lib/hermes/bot/model.rb, line 24
def training?
  status == "training"
end