Class: Ext::Data::Store
Direct Known Subclasses
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 { :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.dup .delete(:url) .delete(:remote_sort) Ext::Data::JsonReader.new() 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 |