Sha256: f6e8419d6fd6ed0e7283afb8db709d7b87433432462704dd288674462722cb25
Contents?: true
Size: 539 Bytes
Versions: 10
Compression:
Stored size: 539 Bytes
Contents
require 'pushbullet_ruby/entity' require 'pushbullet_ruby/api/pushes' 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 update(client: nil, params: {}) client.update_push(push_id: self.id, params: params) end def id body['iden'] end def type body['type'] end end end
Version data entries
10 entries across 9 versions & 2 rubygems