Sha256: 8b3c457d4e053d88613162a68db67895aebfff306e1fb22fdf01e050edbf9388

Contents?: true

Size: 248 Bytes

Versions: 1

Compression:

Stored size: 248 Bytes

Contents

module Pushbullet
  class Push < Resource

    def self.create(type, iden, payload)
      id = iden[/.@.?/].nil? ? :device_iden : :email
      super(payload.merge(type: type, id => iden))
    end

    def self.path
      'pushes'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-pushbullet-0.1.1 lib/pushbullet/push.rb