Class: Horza::Adapters::AbstractAdapter

Inherits:
Object
  • Object
show all
Extended by:
ActiveSupport::DescendantsTracker, ClassMethods
Includes:
InstanceMethods
Defined in:
lib/horza/adapters/abstract_adapter.rb

Direct Known Subclasses

ActiveRecord

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ClassMethods

context_for_entity, expected_errors, expected_horza_errors, horza_error_from_orm_error, not_implemented_error

Methods included from InstanceMethods

#create, #delete, #find_first, #get, #initialize, #update

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



8
9
10
# File 'lib/horza/adapters/abstract_adapter.rb', line 8

def context
  @context
end

Class Method Details

.entity_context_mapObject



15
16
17
# File 'lib/horza/adapters/abstract_adapter.rb', line 15

def entity_context_map
  not_implemented_error
end

.expected_errors_mapObject



11
12
13
# File 'lib/horza/adapters/abstract_adapter.rb', line 11

def expected_errors_map
  not_implemented_error
end

Instance Method Details

#association(options = {}) ⇒ Object



44
45
46
# File 'lib/horza/adapters/abstract_adapter.rb', line 44

def association(options = {})
  not_implemented_error
end

#create!(options = {}) ⇒ Object



32
33
34
# File 'lib/horza/adapters/abstract_adapter.rb', line 32

def create!(options = {})
  not_implemented_error
end

#delete!(id) ⇒ Object



36
37
38
# File 'lib/horza/adapters/abstract_adapter.rb', line 36

def delete!(id)
  not_implemented_error
end

#find_all(options = {}) ⇒ Object



28
29
30
# File 'lib/horza/adapters/abstract_adapter.rb', line 28

def find_all(options = {})
  not_implemented_error
end

#find_first!(options = {}) ⇒ Object



24
25
26
# File 'lib/horza/adapters/abstract_adapter.rb', line 24

def find_first!(options = {})
  not_implemented_error
end

#get!(id) ⇒ Object



20
21
22
# File 'lib/horza/adapters/abstract_adapter.rb', line 20

def get!(id)
  not_implemented_error
end

#to_hashObject



48
49
50
# File 'lib/horza/adapters/abstract_adapter.rb', line 48

def to_hash
  not_implemented_error
end

#update!(id, options = {}) ⇒ Object



40
41
42
# File 'lib/horza/adapters/abstract_adapter.rb', line 40

def update!(id, options = {})
  not_implemented_error
end