Class: APN::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/apn/queue_name.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.queue_name=(value) ⇒ Object

Sets the attribute queue_name

Parameters:

  • value

    the value to set the attribute queue_name to.



4
5
6
# File 'lib/apn/queue_name.rb', line 4

def queue_name=(value)
  @queue_name = value
end

Class Method Details

.queue_name_with_blank_checkObject Also known as: queue_name



6
7
8
# File 'lib/apn/queue_name.rb', line 6

def queue_name_with_blank_check
  queue_name_without_blank_check || raise("APN: No queue name set, please set APN::Config.queue_name in an initializer")
end