lib/masheri/rest_client/base.rb in masheri-0.3.6 vs lib/masheri/rest_client/base.rb in masheri-0.3.7
- old
+ new
@@ -5,10 +5,14 @@
attributes.each do |key, value|
send("#{key}=", value)
end
end
+ def self.count
+ default_query.items(1).to_json["result"]["total_items"]
+ end
+
def self.all
default_query.all
end
def self.items(argument)
@@ -39,6 +43,5 @@
new(standard_query.items(1).all.items[0])
end
end
end
end
-