Class: Mobitex::TestDelivery
- Inherits:
-
Object
- Object
- Mobitex::TestDelivery
- Defined in:
- lib/mobitex/delivery/test_delivery.rb
Instance Attribute Summary collapse
-
#settings ⇒ Object
Returns the value of attribute settings.
Class Method Summary collapse
Instance Method Summary collapse
- #deliver!(message) ⇒ Object
-
#initialize(values) ⇒ TestDelivery
constructor
A new instance of TestDelivery.
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
#settings ⇒ Object
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
.deliveries ⇒ Object
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!() self.class.deliveries << end |