Class: Verizon::LineStringType
- Inherits:
-
Object
- Object
- Verizon::LineStringType
- Defined in:
- lib/verizon/models/line_string_type.rb
Overview
LineStringType.
Constant Summary collapse
- LINE_STRING_TYPE =
[ # TODO: Write general description for LINESTRING LINESTRING = 'LineString'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = LINESTRING) ⇒ Object
20 21 22 23 24 |
# File 'lib/verizon/models/line_string_type.rb', line 20 def self.from_value(value, default_value = LINESTRING) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/verizon/models/line_string_type.rb', line 14 def self.validate(value) return false if value.nil? LINE_STRING_TYPE.include?(value) end |