Module: Hipbot::Storages::Base::ClassMethods

Defined in:
lib/hipbot/storages/base.rb

Instance Method Summary collapse

Instance Method Details

#allObject

Raises:

  • (NotImplementedError)


44
45
46
# File 'lib/hipbot/storages/base.rb', line 44

def all
  raise NotImplementedError
end

#create(attributes) ⇒ Object

Raises:

  • (NotImplementedError)


48
49
50
# File 'lib/hipbot/storages/base.rb', line 48

def create attributes
  raise NotImplementedError
end

#find(id) ⇒ Object

Raises:

  • (NotImplementedError)


52
53
54
# File 'lib/hipbot/storages/base.rb', line 52

def find id
  raise NotImplementedError
end

#find_by(attributes) ⇒ Object

Raises:

  • (NotImplementedError)


56
57
58
# File 'lib/hipbot/storages/base.rb', line 56

def find_by attributes
  raise NotImplementedError
end

#find_or_create_by(attributes) ⇒ Object

Raises:

  • (NotImplementedError)


60
61
62
# File 'lib/hipbot/storages/base.rb', line 60

def find_or_create_by attributes
  raise NotImplementedError
end

#find_or_initialize_by(attributes) ⇒ Object

Raises:

  • (NotImplementedError)


64
65
66
# File 'lib/hipbot/storages/base.rb', line 64

def find_or_initialize_by attributes
  raise NotImplementedError
end

#new(attributes) ⇒ Object

Raises:

  • (NotImplementedError)


68
69
70
# File 'lib/hipbot/storages/base.rb', line 68

def new attributes
  raise NotImplementedError
end

#where(attributes) ⇒ Object

Raises:

  • (NotImplementedError)


72
73
74
# File 'lib/hipbot/storages/base.rb', line 72

def where attributes
  raise NotImplementedError
end