Class: Minitext::Configuration
- Inherits:
-
Object
- Object
- Minitext::Configuration
- Defined in:
- lib/minitext/configuration.rb
Instance Attribute Summary collapse
-
#gateway ⇒ Object
Returns the value of attribute gateway.
-
#message_defaults ⇒ Object
Returns the value of attribute message_defaults.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset! ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/minitext/configuration.rb', line 5 def initialize @gateway = TestGateway.new @message_defaults = {} end |
Instance Attribute Details
#gateway ⇒ Object
Returns the value of attribute gateway.
3 4 5 |
# File 'lib/minitext/configuration.rb', line 3 def gateway @gateway end |
#message_defaults ⇒ Object
Returns the value of attribute message_defaults.
3 4 5 |
# File 'lib/minitext/configuration.rb', line 3 def @message_defaults end |
Instance Method Details
#reset! ⇒ Object
10 11 12 13 |
# File 'lib/minitext/configuration.rb', line 10 def reset! @gateway = TestGateway.new @message_defaults = {} end |