Class: Alchemrest::Transforms::Number

Inherits:
Morpher::Transform
  • Object
show all
Defined in:
lib/alchemrest/transforms/number.rb

Instance Method Summary collapse

Instance Method Details

#call(input) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/alchemrest/transforms/number.rb', line 6

def call(input)
  case input
    when Numeric
      success(input)
    else
      failure_error(input)
  end
end