Class: StoreSchema::Converter::String
- Defined in:
- lib/store_schema/converter/string.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#from_db ⇒ String
Simply returns Base#value since it’s already a String-type.
-
#to_db ⇒ String, false
Simply returns Base#value if it’s a String.
Methods inherited from Base
Constructor Details
This class inherits a constructor from StoreSchema::Converter::Base
Instance Method Details
#from_db ⇒ String
Simply returns Base#value since it’s already a String-type.
23 24 25 |
# File 'lib/store_schema/converter/string.rb', line 23 def from_db value end |
#to_db ⇒ String, false
Simply returns Base#value if it’s a String.
11 12 13 14 15 16 17 |
# File 'lib/store_schema/converter/string.rb', line 11 def to_db if value.is_a?(::String) value else false end end |