class DailyRep::Notificator
Public Class Methods
get_clients()
click to toggle source
# File lib/dailyrep/Notificator.rb, line 5 def self.get_clients result = [] result = Configer.get_client_tokens.map { |token| new token } end
new(push_token, note_title=Configer.push_note_title)
click to toggle source
# File lib/dailyrep/Notificator.rb, line 12 def initialize(push_token, note_title=Configer.push_note_title) @client = Washbullet::Client.new(push_token) @note_title = note_title end
Public Instance Methods
push_note(note)
click to toggle source
# File lib/dailyrep/Notificator.rb, line 17 def push_note note @client.push_note(nil, @note_title, note) end