Sha256: 62a9f56b583640ebc32a813c052192cc760a03472f77e594497eb3c3530d0cd1
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pushbullet_ruby-1.0.2.1 | lib/pushbullet_ruby/device.rb |