Class: Horza::Adapters::AbstractAdapter

Inherits:
Object
  • Object
show all
Extended by:
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

collection_entity_klass, context_for_entity, expected_errors, expected_horza_errors, horza_error_from_orm_error, not_implemented_error, single_entity_klass

Methods included from InstanceMethods

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

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



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

def context
  @context
end

Class Method Details

.expected_errors_mapObject



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

def expected_errors_map
  not_implemented_error
end

Instance Method Details

#association(options = {}) ⇒ Object



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

def association(options = {})
  not_implemented_error
end

#create!(options = {}) ⇒ Object



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

def create!(options = {})
  not_implemented_error
end

#create_as_child!(parent, options = {}) ⇒ Object



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

def create_as_child!(parent, options = {})
  not_implemented_error
end

#delete!(id) ⇒ Object



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

def delete!(id)
  not_implemented_error
end

#find_all(options = {}) ⇒ Object



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

def find_all(options = {})
  not_implemented_error
end

#find_first!(options = {}) ⇒ Object



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

def find_first!(options = {})
  not_implemented_error
end

#get!(id) ⇒ Object



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

def get!(id)
  not_implemented_error
end

#join(options = {}) ⇒ Object



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

def join(options = {})
  not_implemented_error
end

#to_hashObject



51
52
53
# File 'lib/horza/adapters/abstract_adapter.rb', line 51

def to_hash
  not_implemented_error
end

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



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

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