Class: Backdrop::APIBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/backdrop/api_builder.rb

Instance Method Summary collapse

Instance Method Details

#build(input) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/backdrop/api_builder.rb', line 5

def build(input)
  if input.respond_to?(:map)
    build_array(input)
  else
    build_single(input)
  end
end