Method: Pushover::Message#title
- Defined in:
- lib/pushover/message.rb
#title ⇒ String
29 30 31 32 33 34 35 36 37 |
# File 'lib/pushover/message.rb', line 29 Message = Struct.new(:token, :user, :message, :attachment, :device, :title, :url, :url_title, :priority, :sound, :timestamp, :expire, :retry, :callback, keyword_init: true) do # push the configured message to pushover. # @return [Response] response for the receipt request def push i[token user ].each { |param| raise "#{param} must be supplied" unless send param } Response.create_from_excon_response Excon.post(path: '1/messages.json', query: to_h) end end |