Class: Rakumarket::TrueToOne

Inherits:
Object
  • Object
show all
Defined in:
lib/rakumarket/client.rb

Class Method Summary collapse

Class Method Details

.parse(value) ⇒ Object



43
# File 'lib/rakumarket/client.rb', line 43

def self.parse(value) value ? "1" : "0" end

.valuesObject



42
# File 'lib/rakumarket/client.rb', line 42

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