Class: Mint::MoneyAttribute::Configuration
- Inherits:
-
Object
- Object
- Mint::MoneyAttribute::Configuration
- Defined in:
- lib/minting/money_attribute/configuration.rb
Instance Attribute Summary collapse
-
#added_currencies ⇒ Object
Returns the value of attribute added_currencies.
-
#default_currency ⇒ Object
Returns the value of attribute default_currency.
-
#default_format ⇒ Object
Returns the value of attribute default_format.
-
#enabled_currencies ⇒ Object
Returns the value of attribute enabled_currencies.
-
#rounding_mode ⇒ Object
Returns the value of attribute rounding_mode.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 |
# File 'lib/minting/money_attribute/configuration.rb', line 9 def initialize @added_currencies = [] @enabled_currencies = :all @default_currency = 'USD' @rounding_mode = nil @default_format = nil end |
Instance Attribute Details
#added_currencies ⇒ Object
Returns the value of attribute added_currencies.
6 7 8 |
# File 'lib/minting/money_attribute/configuration.rb', line 6 def added_currencies @added_currencies end |
#default_currency ⇒ Object
Returns the value of attribute default_currency.
6 7 8 |
# File 'lib/minting/money_attribute/configuration.rb', line 6 def default_currency @default_currency end |
#default_format ⇒ Object
Returns the value of attribute default_format.
6 7 8 |
# File 'lib/minting/money_attribute/configuration.rb', line 6 def default_format @default_format end |
#enabled_currencies ⇒ Object
Returns the value of attribute enabled_currencies.
6 7 8 |
# File 'lib/minting/money_attribute/configuration.rb', line 6 def enabled_currencies @enabled_currencies end |
#rounding_mode ⇒ Object
Returns the value of attribute rounding_mode.
6 7 8 |
# File 'lib/minting/money_attribute/configuration.rb', line 6 def rounding_mode @rounding_mode end |