module Fog
  module Workflow
    class Telefonica
      class V2
        class Real
          def create_action(definition)
            body = Fog::JSON.encode(definition)
            request(
              :body    => body,
              :expects => 201,
              :method  => "POST",
              :path    => "actions"
            )
          end
        end

        class Mock
          def create_action(_definition)
            response = Excon::Response.new
            response.status = 201
            response.body = ""
            response
          end
        end
      end
    end
  end
end
