Class: GandiV5::Data::Converter::Symbol
- Inherits:
-
Object
- Object
- GandiV5::Data::Converter::Symbol
- Defined in:
- lib/gandi_v5/data/converter/symbol.rb
Overview
Methods for converting strings to/from symbols.
Class Method Summary collapse
Class Method Details
.from_gandi(value) ⇒ Object
18 19 20 21 22 |
# File 'lib/gandi_v5/data/converter/symbol.rb', line 18 def self.from_gandi(value) return nil if value.nil? value.to_sym end |
.to_gandi(value) ⇒ String
10 11 12 13 14 |
# File 'lib/gandi_v5/data/converter/symbol.rb', line 10 def self.to_gandi(value) return nil if value.nil? value.to_s end |