lib/mashery/service.rb in mashery_rails-0.6.9.pre1 vs lib/mashery/service.rb in mashery_rails-0.6.9.pre3

- old
+ new

@@ -5,9 +5,13 @@ attribute :limits, Hash attribute :created, DateTime attribute :updated, DateTime attribute :object_type, String + def inspect + "<Mashery::Service service_key=#{service_key.inspect}>" + end + def activity(options = {}) Mashery.rest.call("developer_activity", service_key, { # TODO: For API purposes, these values probably shouldn't be hard-coded start_date: 1.day.ago, end_date: 0.days.ago }.merge(options))