Class: GwtRpc::Gxt::PaginatedResultset
- Inherits:
-
Object
- Object
- GwtRpc::Gxt::PaginatedResultset
- Defined in:
- lib/gwt_rpc/gxt/paginated_resultset.rb
Instance Attribute Summary collapse
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#total_count ⇒ Object
readonly
Returns the value of attribute total_count.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(offset, total_count, results) ⇒ PaginatedResultset
constructor
A new instance of PaginatedResultset.
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
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
2 3 4 |
# File 'lib/gwt_rpc/gxt/paginated_resultset.rb', line 2 def offset @offset end |
#results ⇒ Object (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_count ⇒ Object (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 |