Class: GwtRpc::Gxt::PaginatedResultset

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offset, total_count, results) ⇒ PaginatedResultset

Returns a new instance of PaginatedResultset.



4
5
6
7
8
# File 'lib/gwt_rpc/gxt/paginated_resultset.rb', line 4

def initialize(offset, total_count, results)
  @offset = offset
  @total_count = total_count
  @results = results
end

Instance Attribute Details

#offsetObject (readonly)

Returns the value of attribute offset.



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

def offset
  @offset
end

#resultsObject (readonly)

Returns the value of attribute results.



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

def results
  @results
end

#total_countObject (readonly)

Returns the value of attribute total_count.



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

def total_count
  @total_count
end

Class Method Details

.gwt_deserialize(reader) ⇒ Object



10
11
12
13
14
15
# File 'lib/gwt_rpc/gxt/paginated_resultset.rb', line 10

def self.gwt_deserialize(reader)
  offset = reader.read_int
  total_count = reader.read_int
  results = reader.read_object
  new(offset, total_count, results)
end