Class: Rakumarket::ZeroToTrue
- Inherits:
-
Object
- Object
- Rakumarket::ZeroToTrue
- Defined in:
- lib/rakumarket/models.rb
Class Method Summary collapse
Class Method Details
.parse(val) ⇒ Object
28 |
# File 'lib/rakumarket/models.rb', line 28 def self.parse(val) values[val.to_s] end |
.values ⇒ Object
27 |
# File 'lib/rakumarket/models.rb', line 27 def self.values; {"0" => true, "1" => false} end |