class Juvet::Bot

Attributes

id[R]

Public Class Methods

all!() click to toggle source
# File lib/juvet/bot.rb, line 8
def all!
  BotRepository.all
end
create(id, attributes={}) click to toggle source
# File lib/juvet/bot.rb, line 12
def create(id, attributes={})
  new attributes.merge(id: id)
end
create!(id, attributes={}) click to toggle source
# File lib/juvet/bot.rb, line 16
def create!(id, attributes={})
  BotRepository.create create(id, attributes)
end
destroy!(id) click to toggle source
# File lib/juvet/bot.rb, line 20
def destroy!(id)
  BotRepository.destroy id
end
find!(id) click to toggle source
# File lib/juvet/bot.rb, line 24
def find!(id)
  BotRepository.find id
end

Public Instance Methods

update!(attributes={}) click to toggle source
# File lib/juvet/bot.rb, line 29
def update!(attributes={})
  BotRepository.update self
end