Module: Hipbot::Storages::Base::ClassMethods
- Defined in:
- lib/hipbot/storages/base.rb
Instance Method Summary collapse
- #all ⇒ Object
- #create(attributes) ⇒ Object
- #find(id) ⇒ Object
- #find_by(attributes) ⇒ Object
- #find_or_create_by(attributes) ⇒ Object
- #find_or_initialize_by(attributes) ⇒ Object
- #new(attributes) ⇒ Object
- #where(attributes) ⇒ Object
Instance Method Details
#all ⇒ Object
44 45 46 |
# File 'lib/hipbot/storages/base.rb', line 44 def all raise NotImplementedError end |
#create(attributes) ⇒ Object
48 49 50 |
# File 'lib/hipbot/storages/base.rb', line 48 def create attributes raise NotImplementedError end |
#find(id) ⇒ Object
52 53 54 |
# File 'lib/hipbot/storages/base.rb', line 52 def find id raise NotImplementedError end |
#find_by(attributes) ⇒ Object
56 57 58 |
# File 'lib/hipbot/storages/base.rb', line 56 def find_by attributes raise NotImplementedError end |
#find_or_create_by(attributes) ⇒ Object
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
64 65 66 |
# File 'lib/hipbot/storages/base.rb', line 64 def find_or_initialize_by attributes raise NotImplementedError end |
#new(attributes) ⇒ Object
68 69 70 |
# File 'lib/hipbot/storages/base.rb', line 68 def new attributes raise NotImplementedError end |
#where(attributes) ⇒ Object
72 73 74 |
# File 'lib/hipbot/storages/base.rb', line 72 def where attributes raise NotImplementedError end |