Class: Killbill::Plugin::Model::Pagination

Inherits:
Object
  • Object
show all
Defined in:
lib/killbill/gen/api/pagination.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePagination

Returns a new instance of Pagination.



39
40
# File 'lib/killbill/gen/api/pagination.rb', line 39

def initialize()
end

Instance Attribute Details

#current_offsetObject

Returns the value of attribute current_offset.



37
38
39
# File 'lib/killbill/gen/api/pagination.rb', line 37

def current_offset
  @current_offset
end

#iteratorObject

Returns the value of attribute iterator.



37
38
39
# File 'lib/killbill/gen/api/pagination.rb', line 37

def iterator
  @iterator
end

#max_nb_recordsObject

Returns the value of attribute max_nb_records.



37
38
39
# File 'lib/killbill/gen/api/pagination.rb', line 37

def max_nb_records
  @max_nb_records
end

#next_offsetObject

Returns the value of attribute next_offset.



37
38
39
# File 'lib/killbill/gen/api/pagination.rb', line 37

def next_offset
  @next_offset
end

#total_nb_recordsObject

Returns the value of attribute total_nb_records.



37
38
39
# File 'lib/killbill/gen/api/pagination.rb', line 37

def total_nb_records
  @total_nb_records
end

Instance Method Details

#to_javaObject



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/killbill/gen/api/pagination.rb', line 42

def to_java()
  # conversion for iterator [type = java.util.Iterator]
  @iterator = Killbill::Plugin::Model::EnumeratorIterator.new(@iterator)

  # conversion for current_offset [type = java.lang.Long]
  @current_offset = @current_offset

  # conversion for next_offset [type = java.lang.Long]
  @next_offset = @next_offset

  # conversion for max_nb_records [type = java.lang.Long]
  @max_nb_records = @max_nb_records

  # conversion for total_nb_records [type = java.lang.Long]
  @total_nb_records = @total_nb_records
  self
end

#to_ruby(j_obj) ⇒ Object



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/killbill/gen/api/pagination.rb', line 60

def to_ruby(j_obj)
  # conversion for iterator [type = java.util.Iterator]
  @iterator = j_obj.iterator

  # conversion for current_offset [type = java.lang.Long]
  @current_offset = j_obj.current_offset

  # conversion for next_offset [type = java.lang.Long]
  @next_offset = j_obj.next_offset

  # conversion for max_nb_records [type = java.lang.Long]
  @max_nb_records = j_obj.max_nb_records

  # conversion for total_nb_records [type = java.lang.Long]
  @total_nb_records = j_obj.total_nb_records
  self
end