Class: GwtRpc::Gxt::SortInfo
- Inherits:
-
Object
- Object
- GwtRpc::Gxt::SortInfo
- Defined in:
- lib/gwt_rpc/gxt/sort_info.rb
Instance Attribute Summary collapse
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(field, direction) ⇒ SortInfo
constructor
A new instance of SortInfo.
Constructor Details
#initialize(field, direction) ⇒ SortInfo
Returns a new instance of SortInfo.
4 5 6 7 |
# File 'lib/gwt_rpc/gxt/sort_info.rb', line 4 def initialize(field, direction) @direction = direction @field = field end |
Instance Attribute Details
#direction ⇒ Object (readonly)
Returns the value of attribute direction.
2 3 4 |
# File 'lib/gwt_rpc/gxt/sort_info.rb', line 2 def direction @direction end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
2 3 4 |
# File 'lib/gwt_rpc/gxt/sort_info.rb', line 2 def field @field end |
Class Method Details
.gwt_deserialize(reader) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/gwt_rpc/gxt/sort_info.rb', line 9 def self.gwt_deserialize(reader) direction = reader.read_object reader.read_int reader.read_int new(nil,direction) end |