class Firepush::MessageType::Notification

Attributes

body[R]
title[R]

Public Class Methods

new(title:, body:) click to toggle source

@param :title [String] @param :body [String]

# File lib/firepush/message_type/notification.rb, line 11
def initialize(title:, body:)
  @title = title
  @body  = body
end

Public Instance Methods

valid?() click to toggle source

@override @return [Boolean]

# File lib/firepush/message_type/notification.rb, line 18
def valid?
  valid_str?(title) && valid_str?(body)
end
value() click to toggle source

@override @return [Hash]

# File lib/firepush/message_type/notification.rb, line 24
def value
  { title: title, body: body }
end