Class: GwtRpc::Gxt::SortInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/gwt_rpc/gxt/sort_info.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#directionObject (readonly)

Returns the value of attribute direction.



2
3
4
# File 'lib/gwt_rpc/gxt/sort_info.rb', line 2

def direction
  @direction
end

#fieldObject (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