Class: Rakumarket::ZeroToTrue

Inherits:
Object
  • Object
show all
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

.valuesObject



27
# File 'lib/rakumarket/models.rb', line 27

def self.values; {"0" => true, "1" => false} end