Class: Minitext::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/minitext/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#gatewayObject

Returns the value of attribute gateway.



3
4
5
# File 'lib/minitext/configuration.rb', line 3

def gateway
  @gateway
end

#message_defaultsObject

Returns the value of attribute message_defaults.



3
4
5
# File 'lib/minitext/configuration.rb', line 3

def message_defaults
  @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