Sha256: fbce3a11a982322b091de1dcbe260196314141ecb6790c6a5b6956ea6a5a0765

Contents?: true

Size: 310 Bytes

Versions: 10

Compression:

Stored size: 310 Bytes

Contents

module Pushbullet
  class Contact < Resource
    include Pushable

    def self.me
      new Pushbullet.client.get('users/me')
    end

    def self.create(name, email)
      super(name: name, email: email)
    end

    def save
      super(name: name)
    end

    def target_id
      email
    end
  end
end

Version data entries

10 entries across 8 versions & 2 rubygems

Version Path
tdiary-5.0.5 vendor/bundle/gems/ruby-pushbullet-0.1.4/lib/pushbullet/contact.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/ruby-pushbullet-0.1.4/lib/pushbullet/contact.rb
tdiary-5.0.4 vendor/bundle/gems/ruby-pushbullet-0.1.4/lib/pushbullet/contact.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/ruby-pushbullet-0.1.4/lib/pushbullet/contact.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/ruby-pushbullet-0.1.4/lib/pushbullet/contact.rb
ruby-pushbullet-0.1.4 lib/pushbullet/contact.rb
ruby-pushbullet-0.1.3 lib/pushbullet/contact.rb
ruby-pushbullet-0.1.2 lib/pushbullet/contact.rb
ruby-pushbullet-0.1.1 lib/pushbullet/contact.rb
ruby-pushbullet-0.1 lib/pushbullet/contact.rb