Class: Mobitex::TestDelivery

Inherits:
Object
  • Object
show all
Defined in:
lib/mobitex/delivery/test_delivery.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values) ⇒ TestDelivery

Returns a new instance of TestDelivery.



14
15
16
# File 'lib/mobitex/delivery/test_delivery.rb', line 14

def initialize(values)
  @settings = {}
end

Instance Attribute Details

#settingsObject

Returns the value of attribute settings.



4
5
6
# File 'lib/mobitex/delivery/test_delivery.rb', line 4

def settings
  @settings
end

Class Method Details

.deliveriesObject



6
7
8
# File 'lib/mobitex/delivery/test_delivery.rb', line 6

def self.deliveries
  @@deliveries ||= []
end

.deliveries=(deliveries) ⇒ Object



10
11
12
# File 'lib/mobitex/delivery/test_delivery.rb', line 10

def self.deliveries=(deliveries)
  @@deliveries = deliveries
end

Instance Method Details

#deliver!(message) ⇒ Object



18
19
20
# File 'lib/mobitex/delivery/test_delivery.rb', line 18

def deliver!(message)
  self.class.deliveries << message
end