Class: ApiConsumer::Elements::Pagination
- Inherits:
-
Struct
- Object
- Struct
- ApiConsumer::Elements::Pagination
- Defined in:
- lib/api_consumer/elements/pagination.rb
Instance Attribute Summary collapse
-
#has_more ⇒ Object
Returns the value of attribute has_more.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#page ⇒ Object
Returns the value of attribute page.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Pagination
constructor
A new instance of Pagination.
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_more ⇒ Object
Returns the value of attribute has_more
3 4 5 |
# File 'lib/api_consumer/elements/pagination.rb', line 3 def has_more @has_more end |
#limit ⇒ Object
Returns the value of attribute limit
3 4 5 |
# File 'lib/api_consumer/elements/pagination.rb', line 3 def limit @limit end |
#page ⇒ Object
Returns the value of attribute page
3 4 5 |
# File 'lib/api_consumer/elements/pagination.rb', line 3 def page @page end |