lib/pushbullet_ruby/push.rb in pushbullet_ruby-1.0.2 vs lib/pushbullet_ruby/push.rb in pushbullet_ruby-1.0.2.1

- old
+ new

@@ -1,12 +1,12 @@ require 'pushbullet_ruby/entity' module PushbulletRuby class Push < Entity def self.from_response(response) - response.body['pushes'].each_with_object([]) do |push, memo| - next unless push['active'] - memo << new(push) + response.body['pushes'].map do |attributes| + next unless attributes['active'] + new(attributes) end end def id body['iden'] \ No newline at end of file