Floppy-amee 0.4.16 → 0.4.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/amee/data_category.rb +2 -2
- data/lib/amee/profile_category.rb +2 -2
- data/lib/amee/version.rb +1 -1
- metadata +1 -1
data/lib/amee/data_category.rb
CHANGED
@@ -77,9 +77,9 @@ module AMEE
|
|
77
77
|
raise AMEE::BadData.new("Couldn't load DataCategory from XML data. Check that your URL is correct.")
|
78
78
|
end
|
79
79
|
|
80
|
-
def self.get(connection, path)
|
80
|
+
def self.get(connection, path, items_per_page = 10)
|
81
81
|
# Load data from path
|
82
|
-
response = connection.get(path)
|
82
|
+
response = connection.get(path, :itemsPerPage => items_per_page)
|
83
83
|
# Parse data from response
|
84
84
|
if response.is_json?
|
85
85
|
cat = Category.from_json(response)
|
@@ -133,9 +133,9 @@ module AMEE
|
|
133
133
|
return history.reverse
|
134
134
|
end
|
135
135
|
|
136
|
-
def self.get(connection, path, for_date = Date.today)
|
136
|
+
def self.get(connection, path, for_date = Date.today, items_per_page = 10)
|
137
137
|
# Load data from path
|
138
|
-
response = connection.get(path, :profileDate => for_date.strftime("%Y%m"))
|
138
|
+
response = connection.get(path, :profileDate => for_date.strftime("%Y%m"), :itemsPerPage => items_per_page)
|
139
139
|
# Parse data from response
|
140
140
|
if response.is_json?
|
141
141
|
cat = Category.from_json(response)
|
data/lib/amee/version.rb
CHANGED