lib/iron_bank/actions/create.rb in iron_bank-1.0.4 vs lib/iron_bank/actions/create.rb in iron_bank-2.0.0
- old
+ new
@@ -8,12 +8,20 @@
class Create < Action
private
def params
{
- objects: requests,
- type: args.fetch(:type)
+ objects: objects,
+ type: type
}
+ end
+
+ def objects
+ IronBank::Object.new(args.fetch(:objects)).deep_camelize(type: :upper)
+ end
+
+ def type
+ IronBank::Utils.camelize(args.fetch(:type), type: :upper)
end
end
end
end