Class: Ext::Data::Store
- Inherits:
-
Base
- Object
- Base
- Ext::Data::Store
show all
- Defined in:
- lib/ext/data/store.rb
Instance Method Summary
collapse
Methods inherited from Base
#args, #camelize_keys, ext_patch, #fixed_values, #initialize, #option, to_json, #to_json, #to_s
Constructor Details
This class inherits a constructor from Ext::Base
Instance Method Details
#options ⇒ Object
23
24
25
26
27
28
29
|
# File 'lib/ext/data/store.rb', line 23
def options
{
:proxy => option(:proxy),
:reader => option(:reader),
:remoteSort => option(:remote_sort),
}
end
|
#proxy ⇒ Object
4
5
6
|
# File 'lib/ext/data/store.rb', line 4
def proxy
Ext::Data::HttpProxy.new(:url=>@options[:url])
end
|
#reader ⇒ Object
8
9
10
11
12
13
|
# File 'lib/ext/data/store.rb', line 8
def reader
options = @options.dup
options.delete(:url)
options.delete(:remote_sort)
Ext::Data::JsonReader.new(options)
end
|
#remote_sort ⇒ Object
15
16
17
18
19
20
21
|
# File 'lib/ext/data/store.rb', line 15
def remote_sort
if @options[:remote_sort] == false
false
else
true
end
end
|