Class: Dock::Base

Inherits:
Object
  • 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

#modelObject (readonly)

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

Raises:



23
24
25
# File 'lib/dock/base.rb', line 23

def all(options = {})
  raise NotSupportedError
end

#associationsObject

Raises:



38
39
40
# File 'lib/dock/base.rb', line 38

def associations()
  raise NotSupportedError
end

#belongs_toObject

Raises:



53
54
55
# File 'lib/dock/base.rb', line 53

def belongs_to()
  raise NotSupportedError
end

#column_namesObject

Raises:



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

def column_names
  raise NotSupportedError
end

#count(options = {}) ⇒ Object

Raises:



47
48
49
# File 'lib/dock/base.rb', line 47

def count(options = {})
  raise NotSupportedError
end

#create(attributes = {}) ⇒ Object

Raises:



14
15
16
# File 'lib/dock/base.rb', line 14

def create(attributes = {})
  raise NotSupportedError
end

#cyclic?Boolean

Returns:

  • (Boolean)

Raises:



65
66
67
# File 'lib/dock/base.rb', line 65

def cyclic?
  raise NotSupportedError
end

#destroy(object) ⇒ Object

Raises:



35
36
37
# File 'lib/dock/base.rb', line 35

def destroy(object)
  raise NotSupportedError
end

#embeddedObject

Raises:



62
63
64
# File 'lib/dock/base.rb', line 62

def embedded
  raise NotSupportedError
end

#encodingObject

Raises:



50
51
52
# File 'lib/dock/base.rb', line 50

def encoding
  raise NotSupportedError
end

#find(id) ⇒ Object

Raises:



17
18
19
# File 'lib/dock/base.rb', line 17

def find(id)
  raise NotSupportedError
end

#find!(id) ⇒ Object

Raises:



20
21
22
# File 'lib/dock/base.rb', line 20

def find!(id)
  raise NotSupportedError
end

#first(options = {}) ⇒ Object

Raises:



26
27
28
# File 'lib/dock/base.rb', line 26

def first(options = {})
  raise NotSupportedError
end

#has_manyObject

Raises:



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

def has_many()
  raise NotSupportedError
end

#idObject

Raises:



29
30
31
# File 'lib/dock/base.rb', line 29

def id
  raise NotSupportedError
end

#model_nameObject

Raises:



41
42
43
# File 'lib/dock/base.rb', line 41

def model_name
  raise NotSupportedError
end

#propertiesObject

Raises:



71
72
73
# File 'lib/dock/base.rb', line 71

def properties()
  raise NotSupportedError
end

#scopedObject

Raises:



59
60
61
# File 'lib/dock/base.rb', line 59

def scoped
  raise NotSupportedError
end

#supports_joins?Boolean

Returns:

  • (Boolean)

Raises:



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

Raises:



32
33
34
# File 'lib/dock/base.rb', line 32

def update(search_key, find_by, update_key, by_value)
  raise NotSupportedError
end