Class: Esa::Matome::Collection
- Inherits:
-
Object
- Object
- Esa::Matome::Collection
- Defined in:
- lib/esa/matome/collection.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#page ⇒ Object
Returns the value of attribute page.
-
#per ⇒ Object
Returns the value of attribute per.
Instance Method Summary collapse
-
#initialize ⇒ Collection
constructor
A new instance of Collection.
Constructor Details
#initialize ⇒ Collection
Returns a new instance of Collection.
6 7 8 9 10 |
# File 'lib/esa/matome/collection.rb', line 6 def initialize @data = [] @page = 1 @per = 100 end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/esa/matome/collection.rb', line 4 def data @data end |
#page ⇒ Object
Returns the value of attribute page.
4 5 6 |
# File 'lib/esa/matome/collection.rb', line 4 def page @page end |
#per ⇒ Object
Returns the value of attribute per.
4 5 6 |
# File 'lib/esa/matome/collection.rb', line 4 def per @per end |