Class: Fino::Settings::Numeric::Unit::Generic
- Inherits:
-
Object
- Object
- Fino::Settings::Numeric::Unit::Generic
- Defined in:
- lib/fino/settings/numeric.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#short_name ⇒ Object
readonly
Returns the value of attribute short_name.
Instance Method Summary collapse
- #base_factor ⇒ Object
- #convertible_to?(_other) ⇒ Boolean
-
#initialize(name, short_name = nil) ⇒ Generic
constructor
A new instance of Generic.
Constructor Details
#initialize(name, short_name = nil) ⇒ Generic
Returns a new instance of Generic.
8 9 10 11 |
# File 'lib/fino/settings/numeric.rb', line 8 def initialize(name, short_name = nil) @name = name @short_name = short_name || name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/fino/settings/numeric.rb', line 6 def name @name end |
#short_name ⇒ Object (readonly)
Returns the value of attribute short_name.
6 7 8 |
# File 'lib/fino/settings/numeric.rb', line 6 def short_name @short_name end |
Instance Method Details
#base_factor ⇒ Object
13 14 15 |
# File 'lib/fino/settings/numeric.rb', line 13 def base_factor 1 end |
#convertible_to?(_other) ⇒ Boolean
17 18 19 |
# File 'lib/fino/settings/numeric.rb', line 17 def convertible_to?(_other) false end |