Class: Rakumarket::OneToTrue

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

.valuesObject



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

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