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