Module: ChatWork::Converter

Included in:
BaseClient
Defined in:
lib/chatwork/converter.rb

Instance Method Summary collapse

Instance Method Details

#boolean_to_integer(value) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/chatwork/converter.rb', line 3

def boolean_to_integer(value)
  case value
  when true
    1
  when false
    0
  else
    value
  end
end