Sha256: 3e07672f403897ccfc44f5218f9622ecf090752d18390d4f3fd0c6acdb354c99
Contents?: true
Size: 387 Bytes
Versions: 3
Compression:
Stored size: 387 Bytes
Contents
require 'pushbullet_ruby/entity' module PushbulletRuby class Push < Entity def self.from_response(response) response.body['pushes'].each_with_object([]) do |attributes, memo| next unless attributes['active'] memo << new(attributes) end end def id body['iden'] end def type body['type'] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pushbullet_ruby-1.1.0 | lib/pushbullet_ruby/push.rb |
pushbullet_ruby-1.0.4.1 | lib/pushbullet_ruby/push.rb |
pushbullet_ruby-1.0.4 | lib/pushbullet_ruby/push.rb |