Class: ActiveWorksheet::Adapters::BaseAdapter
- Inherits:
-
Object
- Object
- ActiveWorksheet::Adapters::BaseAdapter
show all
- Defined in:
- lib/active_worksheet/adapters/base_adapter.rb
Constant Summary
collapse
- ADAPTER_NAME =
"Base"
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(source: nil, authorization: {}) ⇒ BaseAdapter
Returns a new instance of BaseAdapter.
8
9
10
11
|
# File 'lib/active_worksheet/adapters/base_adapter.rb', line 8
def initialize(source: nil, authorization: {})
@source = source
@authorization = authorization
end
|
Instance Attribute Details
#authorization ⇒ Object
Returns the value of attribute authorization.
6
7
8
|
# File 'lib/active_worksheet/adapters/base_adapter.rb', line 6
def authorization
@authorization
end
|
#source ⇒ Object
Returns the value of attribute source.
6
7
8
|
# File 'lib/active_worksheet/adapters/base_adapter.rb', line 6
def source
@source
end
|
Instance Method Details
#all ⇒ Object
13
14
15
|
# File 'lib/active_worksheet/adapters/base_adapter.rb', line 13
def all
raise NotImplementedError
end
|
#count ⇒ Object
33
34
35
|
# File 'lib/active_worksheet/adapters/base_adapter.rb', line 33
def count
raise NotImplementedError
end
|
#find ⇒ Object
17
18
19
|
# File 'lib/active_worksheet/adapters/base_adapter.rb', line 17
def find
raise NotImplementedError
end
|
#first ⇒ Object
21
22
23
|
# File 'lib/active_worksheet/adapters/base_adapter.rb', line 21
def first
raise NotImplementedError
end
|
#last ⇒ Object
25
26
27
|
# File 'lib/active_worksheet/adapters/base_adapter.rb', line 25
def last
raise NotImplementedError
end
|
#new ⇒ Object
29
30
31
|
# File 'lib/active_worksheet/adapters/base_adapter.rb', line 29
def new
raise NotImplementedError
end
|