Class: Dock::Base
- Inherits:
-
Object
show all
- Defined in:
- lib/dock/base.rb
Defined Under Namespace
Classes: NotSupportedError
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(model) ⇒ Base
Returns a new instance of Base.
10
11
12
|
# File 'lib/dock/base.rb', line 10
def initialize(model)
@model = model
end
|
Instance Attribute Details
#model ⇒ Object
Returns the value of attribute model.
3
4
5
|
# File 'lib/dock/base.rb', line 3
def model
@model
end
|
Class Method Details
.inherited(adapter) ⇒ Object
5
6
7
8
|
# File 'lib/dock/base.rb', line 5
def self.inherited(adapter)
Dock.adapters << adapter
super
end
|
Instance Method Details
#all(options = {}) ⇒ Object
23
24
25
|
# File 'lib/dock/base.rb', line 23
def all(options = {})
raise NotSupportedError
end
|
#associations ⇒ Object
38
39
40
|
# File 'lib/dock/base.rb', line 38
def associations()
raise NotSupportedError
end
|
#belongs_to ⇒ Object
53
54
55
|
# File 'lib/dock/base.rb', line 53
def belongs_to()
raise NotSupportedError
end
|
#column_names ⇒ Object
44
45
46
|
# File 'lib/dock/base.rb', line 44
def column_names
raise NotSupportedError
end
|
#count(options = {}) ⇒ Object
47
48
49
|
# File 'lib/dock/base.rb', line 47
def count(options = {})
raise NotSupportedError
end
|
#create(attributes = {}) ⇒ Object
14
15
16
|
# File 'lib/dock/base.rb', line 14
def create(attributes = {})
raise NotSupportedError
end
|
#destroy(object) ⇒ Object
35
36
37
|
# File 'lib/dock/base.rb', line 35
def destroy(object)
raise NotSupportedError
end
|
#find!(id) ⇒ Object
20
21
22
|
# File 'lib/dock/base.rb', line 20
def find!(id)
raise NotSupportedError
end
|
#first(options = {}) ⇒ Object
26
27
28
|
# File 'lib/dock/base.rb', line 26
def first(options = {})
raise NotSupportedError
end
|
#has_many ⇒ Object
56
57
58
|
# File 'lib/dock/base.rb', line 56
def has_many()
raise NotSupportedError
end
|
#model_name ⇒ Object
41
42
43
|
# File 'lib/dock/base.rb', line 41
def model_name
raise NotSupportedError
end
|
#properties ⇒ Object
71
72
73
|
# File 'lib/dock/base.rb', line 71
def properties()
raise NotSupportedError
end
|
#supports_joins? ⇒ Boolean
68
69
70
|
# File 'lib/dock/base.rb', line 68
def supports_joins?
raise NotSupportedError
end
|
#update(search_key, find_by, update_key, by_value) ⇒ Object
32
33
34
|
# File 'lib/dock/base.rb', line 32
def update(search_key, find_by, update_key, by_value)
raise NotSupportedError
end
|