Class: Aloe::AccountConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/aloe/account_configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_balancetrue, false

Does the account allow negative balance? Defaults to true if no values is provided

Returns:

  • (true, false)


16
17
18
# File 'lib/aloe/account_configuration.rb', line 16

def allow_negative_balance
  @allow_negative_balance == false ? false : true
end