Class: Aloe::AccountConfiguration
- Inherits:
-
Object
- Object
- Aloe::AccountConfiguration
- Defined in:
- lib/aloe/account_configuration.rb
Instance Attribute Summary collapse
-
#allow_negative_balance ⇒ true, false
Does the account allow negative balance? Defaults to true if no values is provided.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ AccountConfiguration
constructor
A new instance of AccountConfiguration.
Constructor Details
#initialize(attrs = {}) ⇒ AccountConfiguration
Returns a new instance of AccountConfiguration.
6 7 8 9 10 |
# File 'lib/aloe/account_configuration.rb', line 6 def initialize(attrs = {}) attrs.each do |k ,v| public_send :"#{k}=", v end end |
Instance Attribute Details
#allow_negative_balance ⇒ true, false
Does the account allow negative balance? Defaults to true if no values is provided
16 17 18 |
# File 'lib/aloe/account_configuration.rb', line 16 def allow_negative_balance @allow_negative_balance == false ? false : true end |