Class: ApiConsumer::Elements::Pagination

Inherits:
Struct
  • Object
show all
Defined in:
lib/api_consumer/elements/pagination.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Pagination

Returns a new instance of Pagination.



5
6
7
# File 'lib/api_consumer/elements/pagination.rb', line 5

def initialize(attributes)
  attributes.each { |k, v| send("#{k}=", v) if respond_to?("#{k}=") }
end

Instance Attribute Details

#has_moreObject

Returns the value of attribute has_more

Returns:

  • (Object)

    the current value of has_more



3
4
5
# File 'lib/api_consumer/elements/pagination.rb', line 3

def has_more
  @has_more
end

#limitObject

Returns the value of attribute limit

Returns:

  • (Object)

    the current value of limit



3
4
5
# File 'lib/api_consumer/elements/pagination.rb', line 3

def limit
  @limit
end

#pageObject

Returns the value of attribute page

Returns:

  • (Object)

    the current value of page



3
4
5
# File 'lib/api_consumer/elements/pagination.rb', line 3

def page
  @page
end