Class: GwtRpc::Gxt::Hash
- Inherits:
-
Hash
- Object
- Hash
- GwtRpc::Gxt::Hash
- Defined in:
- lib/gwt_rpc/gxt/hash.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.gwt_deserialize(reader) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/gwt_rpc/gxt/hash.rb', line 12 def self.gwt_deserialize(reader) size = reader.read_int obj = new size.times do key = reader.read_string value = reader.read_object obj[key] = value end obj end |
Instance Method Details
#gwt_serialize ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/gwt_rpc/gxt/hash.rb', line 2 def gwt_serialize ["com.extjs.gxt.ui.client.data.RpcMap/3441186752", self.size ] + %w(modelInstanceBelongsTo documentType searchFields recordsPerPage openForComments queryString).map {|key| val = self[key] [key, val.gwt_serialize] }.flatten end |