Class: Esa::Matome::Collection

Inherits:
Object
  • Object
show all
Defined in:
lib/esa/matome/collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCollection

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

#dataObject

Returns the value of attribute data.



4
5
6
# File 'lib/esa/matome/collection.rb', line 4

def data
  @data
end

#pageObject

Returns the value of attribute page.



4
5
6
# File 'lib/esa/matome/collection.rb', line 4

def page
  @page
end

#perObject

Returns the value of attribute per.



4
5
6
# File 'lib/esa/matome/collection.rb', line 4

def per
  @per
end