Sha256: ea17241c915c6d1d48000d6578ce6f33550b360c9617c66ca1a1426e92c103d9
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
require 'pushbullet_ruby/entity' module PushbulletRuby class Device < Entity def self.from_responce(response) response.body['devices'].map do |attributes| next unless attributes['active'] new(attributes) end end def id body['iden'] end def name body['nickname'] end def app_version body['app_version'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pushbullet_ruby-1.0.3 | lib/pushbullet_ruby/device.rb |