Method: PushbulletRuby::Channel.from_response
- Defined in:
- lib/pushbullet_ruby/channel.rb
.from_response(response) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/pushbullet_ruby/channel.rb', line 6 def self.from_response(response) response.body['subscriptions'].each_with_object([]) do |attributes, memo| next unless attributes['active'] memo << new(attributes['channel']) end end |